#152E52#152E52

#152E52 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.072 H 257.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#152E52
RGBrgb(21, 46, 82)
HSLhsl(215, 59%, 20%)
HSVhsv(215, 74%, 32%)
CMYKcmyk(74.4%, 43.9%, 0%, 67.8%)
CIE-LABlab(18.90, 4.17, -24.84)
CIE-LCHlch(18.90, 25.18, 279.53°)
OKLaboklab(30.2% -0.0154 -0.0708)
OKLCHoklch(30.2% 0.072 257.7)
XYZxyz(2.8087, 2.7223, 8.3584)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E52 #523915
analogous
#154C52 #152E52 #1B1552
triadic
#152E52 #52152E #2E5215
tetradic
#152E52 #52154C #523915 #15521B
square
#152E52 #52154C #523915 #15521B
split-complementary
#152E52 #521B15 #4C5215
monochromatic
#060E18 #091321 #152E52 #214983 #2E65B3

Accessibility & contrast

On white

13.60
#152E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E52
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E52#FFFFFF#000000##FFFFFF
##152E521.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3153
Deuteranopia (green-blind)
#142B51
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152e52;
/* rgb */ color: rgb(21, 46, 82);
/* oklch */ color: oklch(30.2% 0.072 257.7);
Tailwind
colors: {
  custom: {
    50: '#5b6683',
    500: '#152e52',
    950: '#000000',
  },
}
SCSS
$custom: #152e52;
$custom-light: #5b6683;
$custom-dark: #000000;
JSON
{
  "hex": "#152e52",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 82
  },
  "hsl": {
    "h": 215.41,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30196,
    "c": 0.07244,
    "h": 257.7
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#152E52
secondary
#8A6939
accent
#A245E2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050A
muted
#797A7C

Preview Lab

Preview with #152E52

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

Preview Lab → · Contrast checker → · Palette generator →

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