#152F6B#152F6B

#152F6B is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.110 H 263.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#152F6B
RGBrgb(21, 47, 107)
HSLhsl(222, 67%, 25%)
HSVhsv(222, 80%, 42%)
CMYKcmyk(80.4%, 56.1%, 0%, 58%)
CIE-LABlab(21.03, 13.99, -37.87)
CIE-LCHlch(21.03, 40.37, 290.27°)
OKLaboklab(32.42% -0.012 -0.1091)
OKLCHoklch(32.42% 0.11 263.7)
XYZxyz(3.9787, 3.2535, 14.3254)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F6B #6B5115
analogous
#155A6B #152F6B #26156B
triadic
#152F6B #6B152F #2F6B15
tetradic
#152F6B #6B155A #6B5115 #156B26
square
#152F6B #6B155A #6B5115 #156B26
split-complementary
#152F6B #6B2615 #5A6B15
monochromatic
#050B1A #0B1938 #152F6B #1F459E #295CD1

Accessibility & contrast

On white

12.72
#152F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F6B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F6B#FFFFFF#000000##FFFFFF
##152F6B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03376D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152f6b;
/* rgb */ color: rgb(21, 47, 107);
/* oklch */ color: oklch(32.4% 0.110 263.7);
Tailwind
colors: {
  custom: {
    50: '#616796',
    500: '#152f6b',
    950: '#000000',
  },
}
SCSS
$custom: #152f6b;
$custom-light: #616796;
$custom-dark: #000000;
JSON
{
  "hex": "#152f6b",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 107
  },
  "hsl": {
    "h": 221.86,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.10976,
    "h": 263.7
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#152F6B
secondary
#A2823A
accent
#B63EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #152F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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