#152A5A#152A5A

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

Color values

HEX#152A5A
RGBrgb(21, 42, 90)
HSLhsl(222, 62%, 22%)
HSVhsv(222, 77%, 35%)
CMYKcmyk(76.7%, 53.3%, 0%, 64.7%)
CIE-LABlab(18.16, 10.47, -31.36)
CIE-LCHlch(18.16, 33.06, 288.46°)
OKLaboklab(29.81% -0.0095 -0.09)
OKLCHoklch(29.81% 0.091 264)
XYZxyz(2.9820, 2.5532, 10.0065)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A5A #5A4515
analogous
#154D5A #152A5A #23155A
triadic
#152A5A #5A152A #2A5A15
tetradic
#152A5A #5A154D #5A4515 #155A23
square
#152A5A #5A154D #5A4515 #155A23
split-complementary
#152A5A #5A2315 #4D5A15
monochromatic
#060C19 #091328 #152A5A #21418C #2C58BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##152A5A#FFFFFF#000000##FFFFFF
##152A5A1.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)
#0E305C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152a5a;
/* rgb */ color: rgb(21, 42, 90);
/* oklch */ color: oklch(29.8% 0.091 264.0);
Tailwind
colors: {
  custom: {
    50: '#5d6389',
    500: '#152a5a',
    950: '#000000',
  },
}
SCSS
$custom: #152a5a;
$custom-light: #5d6389;
$custom-dark: #000000;
JSON
{
  "hex": "#152a5a",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 90
  },
  "hsl": {
    "h": 221.739,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29809,
    "c": 0.09054,
    "h": 264
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#152A5A
secondary
#927739
accent
#B443E5
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #152A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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