#152A4E#152A4E

#152A4E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.071 H 260.5°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#152A4E
RGBrgb(21, 42, 78)
HSLhsl(218, 58%, 19%)
HSVhsv(218, 73%, 31%)
CMYKcmyk(73.1%, 46.2%, 0%, 69.4%)
CIE-LABlab(17.30, 5.41, -24.69)
CIE-LCHlch(17.30, 25.27, 282.36°)
OKLaboklab(28.87% -0.0118 -0.0704)
OKLCHoklch(28.87% 0.071 260.5)
XYZxyz(2.5119, 2.3652, 7.5304)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A4E #4E3915
analogous
#15474E #152A4E #1D154E
triadic
#152A4E #4E152A #2A4E15
tetradic
#152A4E #4E1547 #4E3915 #154E1D
square
#152A4E #4E1547 #4E3915 #154E1D
split-complementary
#152A4E #4E1D15 #474E15
monochromatic
#060D18 #08101E #152A4E #22447E #2F5EAE

Accessibility & contrast

On white

14.26
#152A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A4E
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A4E#FFFFFF#000000##FFFFFF
##152A4E1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4F
Deuteranopia (green-blind)
#10284D
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152a4e;
/* rgb */ color: rgb(21, 42, 78);
/* oklch */ color: oklch(28.9% 0.071 260.5);
Tailwind
colors: {
  custom: {
    50: '#5a6380',
    500: '#152a4e',
    950: '#000000',
  },
}
SCSS
$custom: #152a4e;
$custom-light: #5a6380;
$custom-dark: #000000;
JSON
{
  "hex": "#152a4e",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 217.895,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28872,
    "c": 0.0714,
    "h": 260.5
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#152A4E
secondary
#866A39
accent
#A847E1
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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