#152F72#152F72

#152F72 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.0% C 0.120 H 264.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#152F72
RGBrgb(21, 47, 114)
HSLhsl(223, 69%, 26%)
HSVhsv(223, 82%, 45%)
CMYKcmyk(81.6%, 58.8%, 0%, 55.3%)
CIE-LABlab(21.60, 16.92, -41.45)
CIE-LCHlch(21.60, 44.78, 292.21°)
OKLaboklab(33.03% -0.0114 -0.1196)
OKLCHoklch(33.03% 0.12 264.6)
XYZxyz(4.3620, 3.4069, 16.3440)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F72 #725815
analogous
#155E72 #152F72 #2A1572
triadic
#152F72 #72152F #2F7215
tetradic
#152F72 #72155E #725815 #15722A
square
#152F72 #72155E #725815 #15722A
split-complementary
#152F72 #722A15 #5E7215
monochromatic
#050B1A #0B1A3E #152F72 #1F44A6 #2A5AD8

Accessibility & contrast

On white

12.49
#152F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152F72
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F72#FFFFFF#000000##FFFFFF
##152F721.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152f72;
/* rgb */ color: rgb(21, 47, 114);
/* oklch */ color: oklch(33.0% 0.120 264.6);
Tailwind
colors: {
  custom: {
    50: '#63679b',
    500: '#152f72',
    950: '#000000',
  },
}
SCSS
$custom: #152f72;
$custom-light: #63679b;
$custom-dark: #000000;
JSON
{
  "hex": "#152f72",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 223.226,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33031,
    "c": 0.12018,
    "h": 264.6
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#152F72
secondary
#A88A3B
accent
#BB3CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F72

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

Preview Lab → · Contrast checker → · Palette generator →

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