#302A8B#302A8B

#302A8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.154 H 278.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#302A8B
RGBrgb(48, 42, 139)
HSLhsl(244, 54%, 35%)
HSVhsv(244, 70%, 55%)
CMYKcmyk(65.5%, 69.8%, 0%, 45.5%)
CIE-LABlab(24.15, 33.52, -53.02)
CIE-LCHlch(24.15, 62.73, 302.30°)
OKLaboklab(36.03% 0.0216 -0.1529)
OKLCHoklch(36.03% 0.154 278)
XYZxyz(6.7056, 4.1478, 24.8683)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A8B #858B2A
analogous
#2A558B #302A8B #602A8B
triadic
#302A8B #8B302A #2A8B30
tetradic
#302A8B #8B2A55 #858B2A #2A8B60
square
#302A8B #8B2A55 #858B2A #2A8B60
split-complementary
#302A8B #8B602A #558B2A
monochromatic
#100E2D #201C5C #302A8B #4038BA #6760CF

Accessibility & contrast

On white

11.48
#302A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#302A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A8B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A8B#FFFFFF#000000##FFFFFF
##302A8B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302a8b;
/* rgb */ color: rgb(48, 42, 139);
/* oklch */ color: oklch(36.0% 0.154 278.0);
Tailwind
colors: {
  custom: {
    50: '#7464ae',
    500: '#302a8b',
    950: '#000000',
  },
}
SCSS
$custom: #302a8b;
$custom-light: #7464ae;
$custom-dark: #000000;
JSON
{
  "hex": "#302a8b",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 243.711,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36031,
    "c": 0.15446,
    "h": 278
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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