#302285#302285

#302285 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.156 H 280.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#302285
RGBrgb(48, 34, 133)
HSLhsl(248, 59%, 33%)
HSVhsv(248, 74%, 52%)
CMYKcmyk(63.9%, 74.4%, 0%, 47.8%)
CIE-LABlab(21.82, 36.33, -53.10)
CIE-LCHlch(21.82, 64.34, 304.38°)
OKLaboklab(34.18% 0.0289 -0.1532)
OKLCHoklch(34.18% 0.156 280.7)
XYZxyz(6.0233, 3.4654, 22.5372)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302285 #778522
analogous
#224585 #302285 #612285
triadic
#302285 #853022 #228530
tetradic
#302285 #852245 #778522 #228561
square
#302285 #852245 #778522 #228561
split-complementary
#302285 #856122 #458522
monochromatic
#0D0924 #1E1654 #302285 #422EB6 #624FD2

Accessibility & contrast

On white

12.40
#302285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#302285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302285
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302285#FFFFFF#000000##FFFFFF
##3022851.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302285;
/* rgb */ color: rgb(48, 34, 133);
/* oklch */ color: oklch(34.2% 0.156 280.7);
Tailwind
colors: {
  custom: {
    50: '#745fa9',
    500: '#302285',
    950: '#000000',
  },
}
SCSS
$custom: #302285;
$custom-light: #745fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#302285",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 248.485,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34181,
    "c": 0.15586,
    "h": 280.7
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#302285
secondary
#A7B64D
accent
#E245CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302285

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#302285 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva