#152F71#152F71

#152F71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.119 H 264.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#152F71
RGBrgb(21, 47, 113)
HSLhsl(223, 69%, 26%)
HSVhsv(223, 81%, 44%)
CMYKcmyk(81.4%, 58.4%, 0%, 55.7%)
CIE-LABlab(21.52, 16.51, -40.95)
CIE-LCHlch(21.52, 44.15, 291.95°)
OKLaboklab(32.94% -0.0115 -0.1181)
OKLCHoklch(32.94% 0.119 264.5)
XYZxyz(4.3054, 3.3842, 16.0459)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F71 #715715
analogous
#155D71 #152F71 #291571
triadic
#152F71 #71152F #2F7115
tetradic
#152F71 #71155D #715715 #157129
square
#152F71 #71155D #715715 #157129
split-complementary
#152F71 #712915 #5D7115
monochromatic
#050B1A #0B1A3D #152F71 #1F44A5 #295AD7

Accessibility & contrast

On white

12.52
#152F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#152F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F71
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F71#FFFFFF#000000##FFFFFF
##152F711.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152f71;
/* rgb */ color: rgb(21, 47, 113);
/* oklch */ color: oklch(32.9% 0.119 264.5);
Tailwind
colors: {
  custom: {
    50: '#63679a',
    500: '#152f71',
    950: '#000000',
  },
}
SCSS
$custom: #152f71;
$custom-light: #63679a;
$custom-dark: #000000;
JSON
{
  "hex": "#152f71",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 223.043,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32942,
    "c": 0.1187,
    "h": 264.5
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#152F71
secondary
#A7883B
accent
#BA3CEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F71

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

Preview Lab → · Contrast checker → · Palette generator →

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