#152A7E#152A7E

#152A7E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.144 H 266.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#152A7E
RGBrgb(21, 42, 126)
HSLhsl(228, 71%, 29%)
HSVhsv(228, 83%, 49%)
CMYKcmyk(83.3%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.29, 25.39, -49.62)
CIE-LCHlch(21.29, 55.74, 297.10°)
OKLaboklab(33.13% -0.0079 -0.1437)
OKLCHoklch(33.13% 0.144 266.9)
XYZxyz(4.9018, 3.3211, 20.1173)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A7E #7E6915
analogous
#155F7E #152A7E #35157E
triadic
#152A7E #7E152A #2A7E15
tetradic
#152A7E #7E155F #7E6915 #157E35
square
#152A7E #7E155F #7E6915 #157E35
split-complementary
#152A7E #7E3515 #5F7E15
monochromatic
#04091A #0C194A #152A7E #1E3BB2 #3153DD

Accessibility & contrast

On white

12.62
#152A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A7E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A7E#FFFFFF#000000##FFFFFF
##152A7E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152a7e;
/* rgb */ color: rgb(21, 42, 126);
/* oklch */ color: oklch(33.1% 0.144 266.9);
Tailwind
colors: {
  custom: {
    50: '#6763a4',
    500: '#152a7e',
    950: '#000000',
  },
}
SCSS
$custom: #152a7e;
$custom-light: #6763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#152a7e",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 228,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33129,
    "c": 0.14388,
    "h": 266.9
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#152A7E
secondary
#B39B3C
accent
#CA3AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A7E

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

Preview Lab → · Contrast checker → · Palette generator →

#152A7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva