#302D8A#302D8A

#302D8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.149 H 277.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#302D8A
RGBrgb(48, 45, 138)
HSLhsl(242, 51%, 36%)
HSVhsv(242, 67%, 54%)
CMYKcmyk(65.2%, 67.4%, 0%, 45.9%)
CIE-LABlab(24.76, 31.28, -51.40)
CIE-LCHlch(24.76, 60.17, 301.33°)
OKLaboklab(36.44% 0.0193 -0.1482)
OKLCHoklch(36.44% 0.149 277.4)
XYZxyz(6.7433, 4.3396, 24.5221)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D8A #878A2D
analogous
#2D588A #302D8A #5E2D8A
triadic
#302D8A #8A302D #2D8A30
tetradic
#302D8A #8A2D58 #878A2D #2D8A5E
square
#302D8A #8A2D58 #878A2D #2D8A5E
split-complementary
#302D8A #8A5E2D #588A2D
monochromatic
#100F2E #201E5C #302D8A #403CB8 #6865CD

Accessibility & contrast

On white

11.24
#302D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#302D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D8A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D8A#FFFFFF#000000##FFFFFF
##302D8A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302d8a;
/* rgb */ color: rgb(48, 45, 138);
/* oklch */ color: oklch(36.4% 0.149 277.4);
Tailwind
colors: {
  custom: {
    50: '#7466ad',
    500: '#302d8a',
    950: '#000000',
  },
}
SCSS
$custom: #302d8a;
$custom-light: #7466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#302d8a",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 241.935,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.14944,
    "h": 277.4
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#302D8A
secondary
#B1B360
accent
#DA4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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