#152B4C#152B4C

#152B4C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.067 H 258.3°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#152B4C
RGBrgb(21, 43, 76)
HSLhsl(216, 57%, 19%)
HSVhsv(216, 72%, 30%)
CMYKcmyk(72.4%, 43.4%, 0%, 70.2%)
CIE-LABlab(17.50, 3.85, -23.01)
CIE-LCHlch(17.50, 23.33, 279.49°)
OKLaboklab(28.99% -0.0135 -0.0655)
OKLCHoklch(28.99% 0.067 258.3)
XYZxyz(2.4772, 2.4087, 7.1705)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B4C #4C3615
analogous
#15474C #152B4C #1B154C
triadic
#152B4C #4C152B #2B4C15
tetradic
#152B4C #4C1547 #4C3615 #154C1B
square
#152B4C #4C1547 #4C3615 #154C1B
split-complementary
#152B4C #4C1B15 #474C15
monochromatic
#070E18 #08101C #152B4C #22467C #2F61AC

Accessibility & contrast

On white

14.17
#152B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#152B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B4C
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B4C#FFFFFF#000000##FFFFFF
##152B4C1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2E4D
Deuteranopia (green-blind)
#14294B
Tritanopia (blue-blind)
#003337
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152b4c;
/* rgb */ color: rgb(21, 43, 76);
/* oklch */ color: oklch(29.0% 0.067 258.3);
Tailwind
colors: {
  custom: {
    50: '#59637e',
    500: '#152b4c',
    950: '#000000',
  },
}
SCSS
$custom: #152b4c;
$custom-light: #59637e;
$custom-dark: #000000;
JSON
{
  "hex": "#152b4c",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 76
  },
  "hsl": {
    "h": 216,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28986,
    "c": 0.06685,
    "h": 258.3
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#152B4C
secondary
#846639
accent
#A348E0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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