#152873#152873

#152873 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.131 H 267.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#152873
RGBrgb(21, 40, 115)
HSLhsl(228, 69%, 27%)
HSVhsv(228, 82%, 45%)
CMYKcmyk(81.7%, 65.2%, 0%, 54.9%)
CIE-LABlab(19.70, 22.36, -45.21)
CIE-LCHlch(19.70, 50.44, 296.32°)
OKLaboklab(31.63% -0.0064 -0.1308)
OKLCHoklch(31.63% 0.131 267.2)
XYZxyz(4.1615, 2.9143, 16.5595)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152873 #736015
analogous
#155773 #152873 #311573
triadic
#152873 #731528 #287315
tetradic
#152873 #731557 #736015 #157331
square
#152873 #731557 #736015 #157331
split-complementary
#152873 #733115 #577315
monochromatic
#05091A #0C163F #152873 #1E3AA7 #2A4DD8

Accessibility & contrast

On white

13.27
#152873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152873
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152873#FFFFFF#000000##FFFFFF
##1528731.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152873;
/* rgb */ color: rgb(21, 40, 115);
/* oklch */ color: oklch(31.6% 0.131 267.2);
Tailwind
colors: {
  custom: {
    50: '#64619c',
    500: '#152873',
    950: '#000000',
  },
}
SCSS
$custom: #152873;
$custom-light: #64619c;
$custom-dark: #000000;
JSON
{
  "hex": "#152873",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 227.872,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31634,
    "c": 0.13092,
    "h": 267.2
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#152873
secondary
#A9933B
accent
#C83CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152873

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

Preview Lab → · Contrast checker → · Palette generator →

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