#152F7B#152F7B

#152F7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.133 H 265.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#152F7B
RGBrgb(21, 47, 123)
HSLhsl(225, 71%, 28%)
HSVhsv(225, 83%, 48%)
CMYKcmyk(82.9%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.38, 20.66, -45.93)
CIE-LCHlch(22.38, 50.36, 294.21°)
OKLaboklab(33.86% -0.0109 -0.1328)
OKLCHoklch(33.86% 0.133 265.3)
XYZxyz(4.8997, 3.6219, 19.1759)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F7B #7B6115
analogous
#15627B #152F7B #2E157B
triadic
#152F7B #7B152F #2F7B15
tetradic
#152F7B #7B1562 #7B6115 #157B2E
square
#152F7B #7B1562 #7B6115 #157B2E
split-complementary
#152F7B #7B2E15 #627B15
monochromatic
#040A1A #0C1B47 #152F7B #1E43AF #2F5BDB

Accessibility & contrast

On white

12.18
#152F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#152F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F7B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F7B#FFFFFF#000000##FFFFFF
##152F7B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152f7b;
/* rgb */ color: rgb(21, 47, 123);
/* oklch */ color: oklch(33.9% 0.133 265.3);
Tailwind
colors: {
  custom: {
    50: '#6567a2',
    500: '#152f7b',
    950: '#000000',
  },
}
SCSS
$custom: #152f7b;
$custom-light: #6567a2;
$custom-dark: #000000;
JSON
{
  "hex": "#152f7b",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 224.706,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33855,
    "c": 0.13324,
    "h": 265.3
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#152F7B
secondary
#B0933B
accent
#C03AEE
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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