#302A8A#302A8A

#302A8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.153 H 278.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#302A8A
RGBrgb(48, 42, 138)
HSLhsl(244, 53%, 35%)
HSVhsv(244, 70%, 54%)
CMYKcmyk(65.2%, 69.6%, 0%, 45.9%)
CIE-LABlab(24.06, 33.18, -52.55)
CIE-LCHlch(24.06, 62.15, 302.27°)
OKLaboklab(35.93% 0.0217 -0.1516)
OKLCHoklch(35.93% 0.153 278.2)
XYZxyz(6.6329, 4.1188, 24.4853)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A8A #848A2A
analogous
#2A548A #302A8A #602A8A
triadic
#302A8A #8A302A #2A8A30
tetradic
#302A8A #8A2A54 #848A2A #2A8A60
square
#302A8A #8A2A54 #848A2A #2A8A60
split-complementary
#302A8A #8A602A #548A2A
monochromatic
#0F0D2C #201C5B #302A8A #4038B9 #6760CF

Accessibility & contrast

On white

11.51
#302A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A8A
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A8A#FFFFFF#000000##FFFFFF
##302A8A1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302a8a;
/* rgb */ color: rgb(48, 42, 138);
/* oklch */ color: oklch(35.9% 0.153 278.2);
Tailwind
colors: {
  custom: {
    50: '#7464ad',
    500: '#302a8a',
    950: '#000000',
  },
}
SCSS
$custom: #302a8a;
$custom-light: #7464ad;
$custom-dark: #000000;
JSON
{
  "hex": "#302a8a",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 243.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35934,
    "c": 0.15312,
    "h": 278.2
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#302A8A
secondary
#AFB45B
accent
#DD4BD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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