#152157#152157

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

Color values

HEX#152157
RGBrgb(21, 33, 87)
HSLhsl(229, 61%, 21%)
HSVhsv(229, 76%, 34%)
CMYKcmyk(75.9%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.14, 15.89, -34.24)
CIE-LCHlch(15.14, 37.74, 294.90°)
OKLaboklab(27.45% -0.0012 -0.0987)
OKLCHoklch(27.45% 0.099 269.3)
XYZxyz(2.5728, 1.9350, 9.2529)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152157 #574B15
analogous
#154257 #152157 #2A1557
triadic
#152157 #571521 #215715
tetradic
#152157 #571542 #574B15 #15572A
square
#152157 #571542 #574B15 #15572A
split-complementary
#152157 #572A15 #425715
monochromatic
#060919 #090E26 #152157 #213488 #2D46BA

Accessibility & contrast

On white

15.14
#152157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152157
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152157#FFFFFF#000000##FFFFFF
##1521571.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152157;
/* rgb */ color: rgb(21, 33, 87);
/* oklch */ color: oklch(27.5% 0.099 269.3);
Tailwind
colors: {
  custom: {
    50: '#5d5b87',
    500: '#152157',
    950: '#000000',
  },
}
SCSS
$custom: #152157;
$custom-light: #5d5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#152157",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 229.091,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27453,
    "c": 0.09867,
    "h": 269.3
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#152157
secondary
#8F7F39
accent
#C744E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #152157

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

Preview Lab → · Contrast checker → · Palette generator →

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