#152B4E#152B4E

#152B4E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.070 H 259.3°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#152B4E
RGBrgb(21, 43, 78)
HSLhsl(217, 58%, 19%)
HSVhsv(217, 73%, 31%)
CMYKcmyk(73.1%, 44.9%, 0%, 69.4%)
CIE-LABlab(17.63, 4.68, -24.15)
CIE-LCHlch(17.63, 24.60, 280.96°)
OKLaboklab(29.13% -0.013 -0.0688)
OKLCHoklch(29.13% 0.07 259.3)
XYZxyz(2.5478, 2.4370, 7.5424)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B4E #4E3815
analogous
#15484E #152B4E #1C154E
triadic
#152B4E #4E152B #2B4E15
tetradic
#152B4E #4E1548 #4E3815 #154E1C
square
#152B4E #4E1548 #4E3815 #154E1C
split-complementary
#152B4E #4E1C15 #484E15
monochromatic
#060D18 #08101E #152B4E #22467E #2F60AE

Accessibility & contrast

On white

14.12
#152B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#152B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B4E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B4E#FFFFFF#000000##FFFFFF
##152B4E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#12294D
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152b4e;
/* rgb */ color: rgb(21, 43, 78);
/* oklch */ color: oklch(29.1% 0.070 259.3);
Tailwind
colors: {
  custom: {
    50: '#5a6380',
    500: '#152b4e',
    950: '#000000',
  },
}
SCSS
$custom: #152b4e;
$custom-light: #5a6380;
$custom-dark: #000000;
JSON
{
  "hex": "#152b4e",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 216.842,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2913,
    "c": 0.07005,
    "h": 259.3
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#152B4E
secondary
#866839
accent
#A547E1
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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