#152A50#152A50

#152A50 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.075 H 261.2°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#152A50
RGBrgb(21, 42, 80)
HSLhsl(219, 58%, 20%)
HSVhsv(219, 74%, 31%)
CMYKcmyk(73.7%, 47.5%, 0%, 68.6%)
CIE-LABlab(17.43, 6.25, -25.82)
CIE-LCHlch(17.43, 26.57, 283.60°)
OKLaboklab(29.02% -0.0114 -0.0737)
OKLCHoklch(29.02% 0.075 261.2)
XYZxyz(2.5847, 2.3943, 7.9138)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A50 #503B15
analogous
#154850 #152A50 #1D1550
triadic
#152A50 #50152A #2A5015
tetradic
#152A50 #501548 #503B15 #15501D
square
#152A50 #501548 #503B15 #15501D
split-complementary
#152A50 #501D15 #485015
monochromatic
#060D18 #081120 #152A50 #224380 #2E5DB1

Accessibility & contrast

On white

14.20
#152A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#152A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A50
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A50#FFFFFF#000000##FFFFFF
##152A501.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182E51
Deuteranopia (green-blind)
#0E284F
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152a50;
/* rgb */ color: rgb(21, 42, 80);
/* oklch */ color: oklch(29.0% 0.075 261.2);
Tailwind
colors: {
  custom: {
    50: '#5a6381',
    500: '#152a50',
    950: '#000000',
  },
}
SCSS
$custom: #152a50;
$custom-light: #5a6381;
$custom-dark: #000000;
JSON
{
  "hex": "#152a50",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 80
  },
  "hsl": {
    "h": 218.644,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29021,
    "c": 0.07462,
    "h": 261.2
  },
  "luminance": 0.02395
}

Semantic roles & 50–950 ramp

primary
#152A50
secondary
#886C39
accent
#AA46E2
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152A50

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

Preview Lab → · Contrast checker → · Palette generator →

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