#302187#302187

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

Color values

HEX#302187
RGBrgb(48, 33, 135)
HSLhsl(249, 61%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(64.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.82, 37.56, -54.36)
CIE-LCHlch(21.82, 66.07, 304.64°)
OKLaboklab(34.24% 0.0292 -0.1568)
OKLCHoklch(34.24% 0.16 280.5)
XYZxyz(6.1346, 3.4649, 23.2625)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302187 #788721
analogous
#214587 #302187 #632187
triadic
#302187 #873021 #218730
tetradic
#302187 #872145 #788721 #218763
square
#302187 #872145 #788721 #218763
split-complementary
#302187 #876321 #458721
monochromatic
#0D0925 #1F1556 #302187 #412DB8 #624FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##302187#FFFFFF#000000##FFFFFF
##3021871.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)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302187;
/* rgb */ color: rgb(48, 33, 135);
/* oklch */ color: oklch(34.2% 0.160 280.5);
Tailwind
colors: {
  custom: {
    50: '#745eab',
    500: '#302187',
    950: '#000000',
  },
}
SCSS
$custom: #302187;
$custom-light: #745eab;
$custom-dark: #000000;
JSON
{
  "hex": "#302187",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 248.824,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.15952,
    "h": 280.5
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#302187
secondary
#A7B74D
accent
#E444CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302187

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

Preview Lab → · Contrast checker → · Palette generator →

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