#152A4D#152A4D

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

Color values

HEX#152A4D
RGBrgb(21, 42, 77)
HSLhsl(218, 57%, 19%)
HSVhsv(218, 73%, 30%)
CMYKcmyk(72.7%, 45.5%, 0%, 69.8%)
CIE-LABlab(17.23, 4.99, -24.11)
CIE-LCHlch(17.23, 24.63, 281.69°)
OKLaboklab(28.8% -0.0121 -0.0687)
OKLCHoklch(28.8% 0.07 260)
XYZxyz(2.4763, 2.3509, 7.3430)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A4D #4D3815
analogous
#15464D #152A4D #1C154D
triadic
#152A4D #4D152A #2A4D15
tetradic
#152A4D #4D1546 #4D3815 #154D1C
square
#152A4D #4D1546 #4D3815 #154D1C
split-complementary
#152A4D #4D1C15 #464D15
monochromatic
#070D18 #08101D #152A4D #22447D #2F5EAD

Accessibility & contrast

On white

14.28
#152A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#152A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A4D
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A4D#FFFFFF#000000##FFFFFF
##152A4D1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#11284C
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #152a4d;
/* rgb */ color: rgb(21, 42, 77);
/* oklch */ color: oklch(28.8% 0.070 260.0);
Tailwind
colors: {
  custom: {
    50: '#5a637f',
    500: '#152a4d',
    950: '#000000',
  },
}
SCSS
$custom: #152a4d;
$custom-light: #5a637f;
$custom-dark: #000000;
JSON
{
  "hex": "#152a4d",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 77
  },
  "hsl": {
    "h": 217.5,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28798,
    "c": 0.06979,
    "h": 260
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#152A4D
secondary
#856839
accent
#A747E0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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