#302184#302184

#302184 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.156 H 281.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#302184
RGBrgb(48, 33, 132)
HSLhsl(249, 60%, 32%)
HSVhsv(249, 75%, 52%)
CMYKcmyk(63.6%, 75%, 0%, 48.2%)
CIE-LABlab(21.51, 36.58, -52.98)
CIE-LCHlch(21.51, 64.38, 304.62°)
OKLaboklab(33.93% 0.0298 -0.1528)
OKLCHoklch(33.93% 0.156 281.1)
XYZxyz(5.9263, 3.3816, 22.1657)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302184 #758421
analogous
#214384 #302184 #622184
triadic
#302184 #843021 #218430
tetradic
#302184 #842143 #758421 #218462
square
#302184 #842143 #758421 #218462
split-complementary
#302184 #846221 #438421
monochromatic
#0C0922 #1E1553 #302184 #422DB5 #614DD2

Accessibility & contrast

On white

12.53
#302184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#302184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302184
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302184#FFFFFF#000000##FFFFFF
##3021841.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302184;
/* rgb */ color: rgb(48, 33, 132);
/* oklch */ color: oklch(33.9% 0.156 281.1);
Tailwind
colors: {
  custom: {
    50: '#745ea9',
    500: '#302184',
    950: '#000000',
  },
}
SCSS
$custom: #302184;
$custom-light: #745ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#302184",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 249.091,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33932,
    "c": 0.15568,
    "h": 281.1
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#302184
secondary
#A5B64B
accent
#E345CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302184

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

Preview Lab → · Contrast checker → · Palette generator →

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