#152F54#152F54

#152F54 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.074 H 257.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#152F54
RGBrgb(21, 47, 84)
HSLhsl(215, 60%, 21%)
HSVhsv(215, 75%, 33%)
CMYKcmyk(75%, 44%, 0%, 67.1%)
CIE-LABlab(19.36, 4.28, -25.44)
CIE-LCHlch(19.36, 25.79, 279.56°)
OKLaboklab(30.6% -0.016 -0.0725)
OKLCHoklch(30.6% 0.074 257.5)
XYZxyz(2.9254, 2.8323, 8.7783)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F54 #543A15
analogous
#154E54 #152F54 #1A1554
triadic
#152F54 #54152F #2F5415
tetradic
#152F54 #54154E #543A15 #15541A
square
#152F54 #54154E #543A15 #15541A
split-complementary
#152F54 #541A15 #4E5415
monochromatic
#060E18 #091423 #152F54 #214A85 #2D66B6

Accessibility & contrast

On white

13.40
#152F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F54
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F54#FFFFFF#000000##FFFFFF
##152F541.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3255
Deuteranopia (green-blind)
#142C53
Tritanopia (blue-blind)
#00383D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152f54;
/* rgb */ color: rgb(21, 47, 84);
/* oklch */ color: oklch(30.6% 0.074 257.5);
Tailwind
colors: {
  custom: {
    50: '#5b6784',
    500: '#152f54',
    950: '#000000',
  },
}
SCSS
$custom: #152f54;
$custom-light: #5b6784;
$custom-dark: #000000;
JSON
{
  "hex": "#152f54",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 84
  },
  "hsl": {
    "h": 215.238,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30598,
    "c": 0.07428,
    "h": 257.5
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#152F54
secondary
#8C6A39
accent
#A245E3
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #152F54

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

Preview Lab → · Contrast checker → · Palette generator →

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