#152B7B#152B7B

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

Color values

HEX#152B7B
RGBrgb(21, 43, 123)
HSLhsl(227, 71%, 28%)
HSVhsv(227, 83%, 48%)
CMYKcmyk(82.9%, 65%, 0%, 51.8%)
CIE-LABlab(21.27, 23.49, -47.75)
CIE-LCHlch(21.27, 53.21, 296.19°)
OKLaboklab(33.03% -0.0084 -0.1382)
OKLCHoklch(33.03% 0.138 266.5)
XYZxyz(4.7470, 3.3167, 19.1250)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B7B #7B6515
analogous
#155E7B #152B7B #32157B
triadic
#152B7B #7B152B #2B7B15
tetradic
#152B7B #7B155E #7B6515 #157B32
square
#152B7B #7B155E #7B6515 #157B32
split-complementary
#152B7B #7B3215 #5E7B15
monochromatic
#04091A #0C1947 #152B7B #1E3DAF #2F54DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##152B7B#FFFFFF#000000##FFFFFF
##152B7B1.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)
#00387E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152b7b;
/* rgb */ color: rgb(21, 43, 123);
/* oklch */ color: oklch(33.0% 0.138 266.5);
Tailwind
colors: {
  custom: {
    50: '#6664a2',
    500: '#152b7b',
    950: '#000000',
  },
}
SCSS
$custom: #152b7b;
$custom-light: #6664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#152b7b",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 227.059,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33029,
    "c": 0.13842,
    "h": 266.5
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#152B7B
secondary
#B0973B
accent
#C73AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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