#152158#152158

#152158 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.100 H 269.3°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#152158
RGBrgb(21, 33, 88)
HSLhsl(229, 61%, 21%)
HSVhsv(229, 76%, 35%)
CMYKcmyk(76.1%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.23, 16.31, -34.76)
CIE-LCHlch(15.23, 38.40, 295.13°)
OKLaboklab(27.55% -0.0011 -0.1002)
OKLCHoklch(27.55% 0.1 269.3)
XYZxyz(2.6140, 1.9515, 9.4695)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152158 #584C15
analogous
#154358 #152158 #2B1558
triadic
#152158 #581521 #215815
tetradic
#152158 #581543 #584C15 #15582B
square
#152158 #581543 #584C15 #15582B
split-complementary
#152158 #582B15 #435815
monochromatic
#060919 #090E27 #152158 #213489 #2D46BB

Accessibility & contrast

On white

15.10
#152158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#152158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152158
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152158#FFFFFF#000000##FFFFFF
##1521581.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152158;
/* rgb */ color: rgb(21, 33, 88);
/* oklch */ color: oklch(27.5% 0.100 269.3);
Tailwind
colors: {
  custom: {
    50: '#5d5b88',
    500: '#152158',
    950: '#000000',
  },
}
SCSS
$custom: #152158;
$custom-light: #5d5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#152158",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 229.254,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27547,
    "c": 0.10022,
    "h": 269.3
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#152158
secondary
#908039
accent
#C843E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #152158

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

Preview Lab → · Contrast checker → · Palette generator →

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