#152B7E#152B7E

#152B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.143 H 266.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#152B7E
RGBrgb(21, 43, 126)
HSLhsl(227, 71%, 29%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(83.3%, 65.9%, 0%, 50.6%)
CIE-LABlab(21.55, 24.70, -49.19)
CIE-LCHlch(21.55, 55.04, 296.66°)
OKLaboklab(33.33% -0.0084 -0.1424)
OKLCHoklch(33.33% 0.143 266.6)
XYZxyz(4.9377, 3.3930, 20.1293)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B7E #7E6815
analogous
#15607E #152B7E #34157E
triadic
#152B7E #7E152B #2B7E15
tetradic
#152B7E #7E1560 #7E6815 #157E34
square
#152B7E #7E1560 #7E6815 #157E34
split-complementary
#152B7E #7E3415 #607E15
monochromatic
#04091A #0C194A #152B7E #1E3DB2 #3155DD

Accessibility & contrast

On white

12.51
#152B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#152B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B7E
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B7E#FFFFFF#000000##FFFFFF
##152B7E1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152b7e;
/* rgb */ color: rgb(21, 43, 126);
/* oklch */ color: oklch(33.3% 0.143 266.6);
Tailwind
colors: {
  custom: {
    50: '#6764a4',
    500: '#152b7e',
    950: '#000000',
  },
}
SCSS
$custom: #152b7e;
$custom-light: #6764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#152b7e",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 227.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33326,
    "c": 0.14262,
    "h": 266.6
  },
  "luminance": 0.03394
}

Semantic roles & 50–950 ramp

primary
#152B7E
secondary
#B39A3C
accent
#C83AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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