#152145#152145

#152145 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.069 H 267.5°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#152145
RGBrgb(21, 33, 69)
HSLhsl(225, 53%, 18%)
HSVhsv(225, 70%, 27%)
CMYKcmyk(69.6%, 52.2%, 0%, 72.9%)
CIE-LABlab(13.69, 8.36, -24.28)
CIE-LCHlch(13.69, 25.68, 289.01°)
OKLaboklab(25.89% -0.003 -0.0694)
OKLCHoklch(25.89% 0.069 267.5)
XYZxyz(1.9269, 1.6766, 5.8511)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152145 #453915
analogous
#153945 #152145 #211545
triadic
#152145 #451521 #214515
tetradic
#152145 #451539 #453915 #154521
square
#152145 #451539 #453915 #154521
split-complementary
#152145 #452115 #394515
monochromatic
#070B17 #070B17 #152145 #233774 #324EA3

Accessibility & contrast

On white

15.73
#152145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#152145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152145
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152145#FFFFFF#000000##FFFFFF
##1521451.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2546
Deuteranopia (green-blind)
#082144
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #152145;
/* rgb */ color: rgb(21, 33, 69);
/* oklch */ color: oklch(25.9% 0.069 267.5);
Tailwind
colors: {
  custom: {
    50: '#585b79',
    500: '#152145',
    950: '#000000',
  },
}
SCSS
$custom: #152145;
$custom-light: #585b79;
$custom-dark: #000000;
JSON
{
  "hex": "#152145",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 225,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25893,
    "c": 0.06944,
    "h": 267.5
  },
  "luminance": 0.01677
}

Semantic roles & 50–950 ramp

primary
#152145
secondary
#7D6C39
accent
#B84BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #152145

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

Preview Lab → · Contrast checker → · Palette generator →

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