#152C51#152C51

#152C51 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.6% C 0.073 H 259.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#152C51
RGBrgb(21, 44, 81)
HSLhsl(217, 59%, 20%)
HSVhsv(217, 74%, 32%)
CMYKcmyk(74.1%, 45.7%, 0%, 68.2%)
CIE-LABlab(18.16, 5.20, -25.33)
CIE-LCHlch(18.16, 25.86, 281.61°)
OKLaboklab(29.61% -0.0134 -0.0723)
OKLCHoklch(29.61% 0.074 259.5)
XYZxyz(2.6946, 2.5546, 8.1341)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C51 #513A15
analogous
#154A51 #152C51 #1C1551
triadic
#152C51 #51152C #2C5115
tetradic
#152C51 #51154A #513A15 #15511C
square
#152C51 #51154A #513A15 #15511C
split-complementary
#152C51 #511C15 #4A5115
monochromatic
#060D18 #081220 #152C51 #224682 #2E61B2

Accessibility & contrast

On white

13.90
#152C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C51
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C51#FFFFFF#000000##FFFFFF
##152C511.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2F52
Deuteranopia (green-blind)
#112A50
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152c51;
/* rgb */ color: rgb(21, 44, 81);
/* oklch */ color: oklch(29.6% 0.073 259.5);
Tailwind
colors: {
  custom: {
    50: '#5a6482',
    500: '#152c51',
    950: '#000000',
  },
}
SCSS
$custom: #152c51;
$custom-light: #5a6482;
$custom-dark: #000000;
JSON
{
  "hex": "#152c51",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 81
  },
  "hsl": {
    "h": 217,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29607,
    "c": 0.0735,
    "h": 259.5
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#152C51
secondary
#896A39
accent
#A646E2
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152C51

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

Preview Lab → · Contrast checker → · Palette generator →

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