#152A5C#152A5C

#152A5C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.094 H 264.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#152A5C
RGBrgb(21, 42, 92)
HSLhsl(222, 63%, 22%)
HSVhsv(222, 77%, 36%)
CMYKcmyk(77.2%, 54.3%, 0%, 63.9%)
CIE-LABlab(18.31, 11.31, -32.44)
CIE-LCHlch(18.31, 34.36, 289.22°)
OKLaboklab(29.98% -0.0093 -0.0932)
OKLCHoklch(29.98% 0.094 264.3)
XYZxyz(3.0683, 2.5877, 10.4609)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A5C #5C4715
analogous
#154D5C #152A5C #24155C
triadic
#152A5C #5C152A #2A5C15
tetradic
#152A5C #5C154D #5C4715 #155C24
square
#152A5C #5C154D #5C4715 #155C24
split-complementary
#152A5C #5C2415 #4D5C15
monochromatic
#060B19 #0A132A #152A5C #20418E #2C57C0

Accessibility & contrast

On white

13.84
#152A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A5C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A5C#FFFFFF#000000##FFFFFF
##152A5C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152a5c;
/* rgb */ color: rgb(21, 42, 92);
/* oklch */ color: oklch(30.0% 0.094 264.3);
Tailwind
colors: {
  custom: {
    50: '#5d638a',
    500: '#152a5c',
    950: '#000000',
  },
}
SCSS
$custom: #152a5c;
$custom-light: #5d638a;
$custom-dark: #000000;
JSON
{
  "hex": "#152a5c",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 222.254,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29975,
    "c": 0.09369,
    "h": 264.3
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#152A5C
secondary
#937939
accent
#B542E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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