#152A5E#152A5E

#152A5E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.097 H 264.7°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#152A5E
RGBrgb(21, 42, 94)
HSLhsl(223, 63%, 23%)
HSVhsv(223, 78%, 37%)
CMYKcmyk(77.7%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.47, 12.16, -33.52)
CIE-LCHlch(18.47, 35.65, 289.94°)
OKLaboklab(30.14% -0.009 -0.0964)
OKLCHoklch(30.14% 0.097 264.7)
XYZxyz(3.1569, 2.6232, 10.9275)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A5E #5E4915
analogous
#154E5E #152A5E #25155E
triadic
#152A5E #5E152A #2A5E15
tetradic
#152A5E #5E154E #5E4915 #155E25
square
#152A5E #5E154E #5E4915 #155E25
split-complementary
#152A5E #5E2515 #4E5E15
monochromatic
#060B19 #0A142C #152A5E #204090 #2B57C2

Accessibility & contrast

On white

13.77
#152A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A5E
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A5E#FFFFFF#000000##FFFFFF
##152A5E1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152a5e;
/* rgb */ color: rgb(21, 42, 94);
/* oklch */ color: oklch(30.1% 0.097 264.7);
Tailwind
colors: {
  custom: {
    50: '#5e638c',
    500: '#152a5e',
    950: '#000000',
  },
}
SCSS
$custom: #152a5e;
$custom-light: #5e638c;
$custom-dark: #000000;
JSON
{
  "hex": "#152a5e",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 222.74,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30143,
    "c": 0.09681,
    "h": 264.7
  },
  "luminance": 0.02624
}

Semantic roles & 50–950 ramp

primary
#152A5E
secondary
#957B39
accent
#B741E7
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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