#152A4C#152A4C

#152A4C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.068 H 259.6°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#152A4C
RGBrgb(21, 42, 76)
HSLhsl(217, 57%, 19%)
HSVhsv(217, 72%, 30%)
CMYKcmyk(72.4%, 44.7%, 0%, 70.2%)
CIE-LABlab(17.16, 4.57, -23.54)
CIE-LCHlch(17.16, 23.98, 281.00°)
OKLaboklab(28.73% -0.0123 -0.067)
OKLCHoklch(28.73% 0.068 259.6)
XYZxyz(2.4413, 2.3369, 7.1585)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A4C #4C3715
analogous
#15464C #152A4C #1C154C
triadic
#152A4C #4C152A #2A4C15
tetradic
#152A4C #4C1546 #4C3715 #154C1C
square
#152A4C #4C1546 #4C3715 #154C1C
split-complementary
#152A4C #4C1C15 #464C15
monochromatic
#070D18 #08101C #152A4C #22447C #2F5FAC

Accessibility & contrast

On white

14.31
#152A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A4C
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A4C#FFFFFF#000000##FFFFFF
##152A4C1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4D
Deuteranopia (green-blind)
#12284B
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #152a4c;
/* rgb */ color: rgb(21, 42, 76);
/* oklch */ color: oklch(28.7% 0.068 259.6);
Tailwind
colors: {
  custom: {
    50: '#59637e',
    500: '#152a4c',
    950: '#000000',
  },
}
SCSS
$custom: #152a4c;
$custom-light: #59637e;
$custom-dark: #000000;
JSON
{
  "hex": "#152a4c",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 217.091,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28725,
    "c": 0.06817,
    "h": 259.6
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#152A4C
secondary
#846739
accent
#A648E0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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