#152D6B#152D6B

#152D6B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.0% C 0.113 H 264.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#152D6B
RGBrgb(21, 45, 107)
HSLhsl(223, 67%, 25%)
HSVhsv(223, 80%, 42%)
CMYKcmyk(80.4%, 57.9%, 0%, 58%)
CIE-LABlab(20.43, 15.44, -38.85)
CIE-LCHlch(20.43, 41.81, 291.67°)
OKLaboklab(31.96% -0.0103 -0.112)
OKLCHoklch(31.96% 0.113 264.7)
XYZxyz(3.9005, 3.0973, 14.2993)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D6B #6B5315
analogous
#15586B #152D6B #28156B
triadic
#152D6B #6B152D #2D6B15
tetradic
#152D6B #6B1558 #6B5315 #156B28
square
#152D6B #6B1558 #6B5315 #156B28
split-complementary
#152D6B #6B2815 #586B15
monochromatic
#050B1A #0B1738 #152D6B #1F439E #2958D1

Accessibility & contrast

On white

12.97
#152D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D6B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D6B#FFFFFF#000000##FFFFFF
##152D6B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#003C47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152d6b;
/* rgb */ color: rgb(21, 45, 107);
/* oklch */ color: oklch(32.0% 0.113 264.7);
Tailwind
colors: {
  custom: {
    50: '#616596',
    500: '#152d6b',
    950: '#000000',
  },
}
SCSS
$custom: #152d6b;
$custom-light: #616596;
$custom-dark: #000000;
JSON
{
  "hex": "#152d6b",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 107
  },
  "hsl": {
    "h": 223.256,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31961,
    "c": 0.1125,
    "h": 264.7
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#152D6B
secondary
#A2853A
accent
#BA3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #152D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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