#152F58#152F58

#152F58 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.081 H 259.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#152F58
RGBrgb(21, 47, 88)
HSLhsl(217, 61%, 21%)
HSVhsv(217, 76%, 35%)
CMYKcmyk(76.1%, 46.6%, 0%, 65.5%)
CIE-LABlab(19.63, 5.96, -27.68)
CIE-LCHlch(19.63, 28.31, 282.16°)
OKLaboklab(30.89% -0.0151 -0.0791)
OKLCHoklch(30.89% 0.081 259.2)
XYZxyz(3.0866, 2.8967, 9.6271)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F58 #583E15
analogous
#155158 #152F58 #1D1558
triadic
#152F58 #58152F #2F5815
tetradic
#152F58 #581551 #583E15 #15581D
square
#152F58 #581551 #583E15 #15581D
split-complementary
#152F58 #581D15 #515815
monochromatic
#060D19 #091527 #152F58 #214989 #2D64BB

Accessibility & contrast

On white

13.30
#152F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F58
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F58#FFFFFF#000000##FFFFFF
##152F581.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#0F2D57
Tritanopia (blue-blind)
#00393F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152f58;
/* rgb */ color: rgb(21, 47, 88);
/* oklch */ color: oklch(30.9% 0.081 259.2);
Tailwind
colors: {
  custom: {
    50: '#5c6787',
    500: '#152f58',
    950: '#000000',
  },
}
SCSS
$custom: #152f58;
$custom-light: #5c6787;
$custom-dark: #000000;
JSON
{
  "hex": "#152f58",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 216.716,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3089,
    "c": 0.08054,
    "h": 259.2
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#152F58
secondary
#906E39
accent
#A643E5
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #152F58

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

Preview Lab → · Contrast checker → · Palette generator →

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