#302E8D#302E8D

#302E8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.152 H 276.8°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#302E8D
RGBrgb(48, 46, 141)
HSLhsl(241, 51%, 37%)
HSVhsv(241, 67%, 55%)
CMYKcmyk(66%, 67.4%, 0%, 44.7%)
CIE-LABlab(25.27, 31.70, -52.43)
CIE-LCHlch(25.27, 61.26, 301.15°)
OKLaboklab(36.9% 0.0181 -0.1512)
OKLCHoklch(36.9% 0.152 276.8)
XYZxyz(7.0021, 4.5049, 25.6947)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E8D #8B8D2E
analogous
#2E5C8D #302E8D #602E8D
triadic
#302E8D #8D302E #2E8D30
tetradic
#302E8D #8D2E5C #8B8D2E #2E8D60
square
#302E8D #8D2E5C #8B8D2E #2E8D60
split-complementary
#302E8D #8D602E #5C8D2E
monochromatic
#111031 #201F5F #302E8D #403DBB #6A68CE

Accessibility & contrast

On white

11.05
#302E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#302E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E8D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E8D#FFFFFF#000000##FFFFFF
##302E8D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302e8d;
/* rgb */ color: rgb(48, 46, 141);
/* oklch */ color: oklch(36.9% 0.152 276.8);
Tailwind
colors: {
  custom: {
    50: '#7467af',
    500: '#302e8d',
    950: '#000000',
  },
}
SCSS
$custom: #302e8d;
$custom-light: #7467af;
$custom-dark: #000000;
JSON
{
  "hex": "#302e8d",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 241.263,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.15228,
    "h": 276.8
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

primary
#302E8D
secondary
#B3B562
accent
#DA4ED7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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