#302087#302087

#302087 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.161 H 280.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#302087
RGBrgb(48, 32, 135)
HSLhsl(249, 62%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(64.4%, 76.3%, 0%, 47.1%)
CIE-LABlab(21.62, 38.12, -54.69)
CIE-LCHlch(21.62, 66.67, 304.88°)
OKLaboklab(34.1% 0.0299 -0.1578)
OKLCHoklch(34.1% 0.161 280.7)
XYZxyz(6.1072, 3.4102, 23.2534)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302087 #778720
analogous
#204487 #302087 #632087
triadic
#302087 #873020 #208730
tetradic
#302087 #872044 #778720 #208763
square
#302087 #872044 #778720 #208763
split-complementary
#302087 #876320 #448720
monochromatic
#0D0924 #1E1456 #302087 #422CB8 #624DD5

Accessibility & contrast

On white

12.48
#302087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302087
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302087#FFFFFF#000000##FFFFFF
##3020871.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302087;
/* rgb */ color: rgb(48, 32, 135);
/* oklch */ color: oklch(34.1% 0.161 280.7);
Tailwind
colors: {
  custom: {
    50: '#745eab',
    500: '#302087',
    950: '#000000',
  },
}
SCSS
$custom: #302087;
$custom-light: #745eab;
$custom-dark: #000000;
JSON
{
  "hex": "#302087",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 249.32,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.341,
    "c": 0.16059,
    "h": 280.7
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#302087
secondary
#A7B84B
accent
#E543CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302087

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

Preview Lab → · Contrast checker → · Palette generator →

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