#152D6C#152D6C

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

Color values

HEX#152D6C
RGBrgb(21, 45, 108)
HSLhsl(223, 67%, 25%)
HSVhsv(223, 81%, 42%)
CMYKcmyk(80.6%, 58.3%, 0%, 57.6%)
CIE-LABlab(20.51, 15.86, -39.36)
CIE-LCHlch(20.51, 42.44, 291.95°)
OKLaboklab(32.05% -0.0103 -0.1135)
OKLCHoklch(32.05% 0.114 264.8)
XYZxyz(3.9535, 3.1185, 14.5780)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D6C #6C5415
analogous
#15596C #152D6C #28156C
triadic
#152D6C #6C152D #2D6C15
tetradic
#152D6C #6C1559 #6C5415 #156C28
square
#152D6C #6C1559 #6C5415 #156C28
split-complementary
#152D6C #6C2815 #596C15
monochromatic
#050B1A #0B1839 #152D6C #1F429F #2958D2

Accessibility & contrast

On white

12.93
#152D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152D6C
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D6C#FFFFFF#000000##FFFFFF
##152D6C1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#003D47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152d6c;
/* rgb */ color: rgb(21, 45, 108);
/* oklch */ color: oklch(32.0% 0.114 264.8);
Tailwind
colors: {
  custom: {
    50: '#616597',
    500: '#152d6c',
    950: '#000000',
  },
}
SCSS
$custom: #152d6c;
$custom-light: #616597;
$custom-dark: #000000;
JSON
{
  "hex": "#152d6c",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 108
  },
  "hsl": {
    "h": 223.448,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3205,
    "c": 0.11399,
    "h": 264.8
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#152D6C
secondary
#A3863A
accent
#BB3DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #152D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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