#302987#302987

#302987 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.150 H 278.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#302987
RGBrgb(48, 41, 135)
HSLhsl(244, 53%, 35%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(64.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.55, 32.77, -51.52)
CIE-LCHlch(23.55, 61.06, 302.46°)
OKLaboklab(35.48% 0.023 -0.1485)
OKLCHoklch(35.48% 0.15 278.8)
XYZxyz(6.3836, 3.9630, 23.3455)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302987 #808729
analogous
#295187 #302987 #5F2987
triadic
#302987 #873029 #298730
tetradic
#302987 #872951 #808729 #29875F
square
#302987 #872951 #808729 #29875F
split-complementary
#302987 #875F29 #518729
monochromatic
#0F0C29 #1F1B58 #302987 #4137B6 #655DCE

Accessibility & contrast

On white

11.71
#302987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302987
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302987#FFFFFF#000000##FFFFFF
##3029871.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302987;
/* rgb */ color: rgb(48, 41, 135);
/* oklch */ color: oklch(35.5% 0.150 278.8);
Tailwind
colors: {
  custom: {
    50: '#7463ab',
    500: '#302987',
    950: '#000000',
  },
}
SCSS
$custom: #302987;
$custom-light: #7463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302987",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 244.468,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35479,
    "c": 0.15031,
    "h": 278.8
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#302987
secondary
#ACB359
accent
#DD4BD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302987

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

Preview Lab → · Contrast checker → · Palette generator →

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