#152D4F#152D4F

#152D4F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.7% C 0.069 H 257.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#152D4F
RGBrgb(21, 45, 79)
HSLhsl(215, 58%, 20%)
HSVhsv(215, 73%, 31%)
CMYKcmyk(73.4%, 43%, 0%, 69%)
CIE-LABlab(18.37, 3.64, -23.66)
CIE-LCHlch(18.37, 23.94, 278.75°)
OKLaboklab(29.72% -0.0151 -0.0673)
OKLCHoklch(29.72% 0.069 257.4)
XYZxyz(2.6584, 2.6004, 7.7575)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D4F #4F3715
analogous
#154A4F #152D4F #1A154F
triadic
#152D4F #4F152D #2D4F15
tetradic
#152D4F #4F154A #4F3715 #154F1A
square
#152D4F #4F154A #4F3715 #154F1A
split-complementary
#152D4F #4F1A15 #4A4F15
monochromatic
#060E18 #08111F #152D4F #22497F #2F64B0

Accessibility & contrast

On white

13.81
#152D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#152D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D4F
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D4F#FFFFFF#000000##FFFFFF
##152D4F1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3050
Deuteranopia (green-blind)
#152A4E
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152d4f;
/* rgb */ color: rgb(21, 45, 79);
/* oklch */ color: oklch(29.7% 0.069 257.4);
Tailwind
colors: {
  custom: {
    50: '#5a6580',
    500: '#152d4f',
    950: '#000000',
  },
}
SCSS
$custom: #152d4f;
$custom-light: #5a6580;
$custom-dark: #000000;
JSON
{
  "hex": "#152d4f",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 79
  },
  "hsl": {
    "h": 215.172,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29722,
    "c": 0.06902,
    "h": 257.4
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#152D4F
secondary
#876739
accent
#A147E1
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #152D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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