#302D89#302D89

#302D89 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.148 H 277.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#302D89
RGBrgb(48, 45, 137)
HSLhsl(242, 51%, 36%)
HSVhsv(242, 67%, 54%)
CMYKcmyk(65%, 67.2%, 0%, 46.3%)
CIE-LABlab(24.67, 30.93, -50.93)
CIE-LCHlch(24.67, 59.58, 301.27°)
OKLaboklab(36.35% 0.0194 -0.1468)
OKLCHoklch(36.35% 0.148 277.5)
XYZxyz(6.6712, 4.3108, 24.1426)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D89 #86892D
analogous
#2D5889 #302D89 #5E2D89
triadic
#302D89 #89302D #2D8930
tetradic
#302D89 #892D58 #86892D #2D895E
square
#302D89 #892D58 #86892D #2D895E
split-complementary
#302D89 #895E2D #58892D
monochromatic
#100F2D #201E5B #302D89 #403CB7 #6864CC

Accessibility & contrast

On white

11.28
#302D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#302D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D89
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D89#FFFFFF#000000##FFFFFF
##302D891.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302d89;
/* rgb */ color: rgb(48, 45, 137);
/* oklch */ color: oklch(36.3% 0.148 277.5);
Tailwind
colors: {
  custom: {
    50: '#7466ac',
    500: '#302d89',
    950: '#000000',
  },
}
SCSS
$custom: #302d89;
$custom-light: #7466ac;
$custom-dark: #000000;
JSON
{
  "hex": "#302d89",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 241.957,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36349,
    "c": 0.14806,
    "h": 277.5
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#302D89
secondary
#B0B35F
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D89

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

Preview Lab → · Contrast checker → · Palette generator →

#302D89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva