#302E8B#302E8B

#302E8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.150 H 277.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#302E8B
RGBrgb(48, 46, 139)
HSLhsl(241, 50%, 36%)
HSVhsv(241, 67%, 55%)
CMYKcmyk(65.5%, 66.9%, 0%, 45.5%)
CIE-LABlab(25.09, 30.99, -51.48)
CIE-LCHlch(25.09, 60.09, 301.05°)
OKLaboklab(36.71% 0.0183 -0.1484)
OKLCHoklch(36.71% 0.15 277)
XYZxyz(6.8546, 4.4459, 24.9180)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E8B #898B2E
analogous
#2E5B8B #302E8B #5F2E8B
triadic
#302E8B #8B302E #2E8B30
tetradic
#302E8B #8B2E5B #898B2E #2E8B5F
square
#302E8B #8B2E5B #898B2E #2E8B5F
split-complementary
#302E8B #8B5F2E #5B8B2E
monochromatic
#10102F #201F5D #302E8B #403DB9 #6967CD

Accessibility & contrast

On white

11.12
#302E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#302E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E8B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E8B#FFFFFF#000000##FFFFFF
##302E8B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302e8b;
/* rgb */ color: rgb(48, 46, 139);
/* oklch */ color: oklch(36.7% 0.150 277.0);
Tailwind
colors: {
  custom: {
    50: '#7467ae',
    500: '#302e8b',
    950: '#000000',
  },
}
SCSS
$custom: #302e8b;
$custom-light: #7467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#302e8b",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 241.29,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36711,
    "c": 0.14955,
    "h": 277
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#302E8B
secondary
#B2B361
accent
#DA4ED7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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