#152E57#152E57

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

Color values

HEX#152E57
RGBrgb(21, 46, 87)
HSLhsl(217, 61%, 21%)
HSVhsv(217, 76%, 34%)
CMYKcmyk(75.9%, 47.1%, 0%, 65.9%)
CIE-LABlab(19.23, 6.27, -27.64)
CIE-LCHlch(19.23, 28.35, 282.77°)
OKLaboklab(30.56% -0.0142 -0.079)
OKLCHoklch(30.56% 0.08 259.8)
XYZxyz(3.0059, 2.8012, 9.3972)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E57 #573E15
analogous
#154F57 #152E57 #1D1557
triadic
#152E57 #57152E #2E5715
tetradic
#152E57 #57154F #573E15 #15571D
square
#152E57 #57154F #573E15 #15571D
split-complementary
#152E57 #571D15 #4F5715
monochromatic
#060D19 #091426 #152E57 #214888 #2D62BA

Accessibility & contrast

On white

13.46
#152E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#152E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E57
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E57#FFFFFF#000000##FFFFFF
##152E571.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3259
Deuteranopia (green-blind)
#0E2C56
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152e57;
/* rgb */ color: rgb(21, 46, 87);
/* oklch */ color: oklch(30.6% 0.080 259.8);
Tailwind
colors: {
  custom: {
    50: '#5c6687',
    500: '#152e57',
    950: '#000000',
  },
}
SCSS
$custom: #152e57;
$custom-light: #5c6687;
$custom-dark: #000000;
JSON
{
  "hex": "#152e57",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 87
  },
  "hsl": {
    "h": 217.273,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30562,
    "c": 0.0803,
    "h": 259.8
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#152E57
secondary
#8F6E39
accent
#A744E4
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #152E57

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

Preview Lab → · Contrast checker → · Palette generator →

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