#152452#152452

#152452 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.086 H 267.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#152452
RGBrgb(21, 36, 82)
HSLhsl(225, 59%, 20%)
HSVhsv(225, 74%, 32%)
CMYKcmyk(74.4%, 56.1%, 0%, 67.8%)
CIE-LABlab(15.64, 11.55, -30.05)
CIE-LCHlch(15.64, 32.19, 291.03°)
OKLaboklab(27.7% -0.0045 -0.0863)
OKLCHoklch(27.7% 0.086 267)
XYZxyz(2.4626, 2.0301, 8.2431)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152452 #524315
analogous
#154252 #152452 #251552
triadic
#152452 #521524 #245215
tetradic
#152452 #521542 #524315 #155225
square
#152452 #521542 #524315 #155225
split-complementary
#152452 #522515 #425215
monochromatic
#060B18 #090F21 #152452 #213983 #2E4FB3

Accessibility & contrast

On white

14.94
#152452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#152452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152452
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152452#FFFFFF#000000##FFFFFF
##1524521.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A54
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #152452;
/* rgb */ color: rgb(21, 36, 82);
/* oklch */ color: oklch(27.7% 0.086 267.0);
Tailwind
colors: {
  custom: {
    50: '#5b5e83',
    500: '#152452',
    950: '#000000',
  },
}
SCSS
$custom: #152452;
$custom-light: #5b5e83;
$custom-dark: #000000;
JSON
{
  "hex": "#152452",
  "rgb": {
    "r": 21,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 225.246,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27699,
    "c": 0.08641,
    "h": 267
  },
  "luminance": 0.0203
}

Semantic roles & 50–950 ramp

primary
#152452
secondary
#8A7639
accent
#BC45E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #152452

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

Preview Lab → · Contrast checker → · Palette generator →

#152452 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva