#152148#152148

#152148 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.074 H 268.1°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#152148
RGBrgb(21, 33, 72)
HSLhsl(226, 55%, 18%)
HSVhsv(226, 71%, 28%)
CMYKcmyk(70.8%, 54.2%, 0%, 71.8%)
CIE-LABlab(13.91, 9.62, -26.00)
CIE-LCHlch(13.91, 27.72, 290.30°)
OKLaboklab(26.14% -0.0025 -0.0744)
OKLCHoklch(26.14% 0.074 268.1)
XYZxyz(2.0224, 1.7148, 6.3541)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152148 #483C15
analogous
#153A48 #152148 #221548
triadic
#152148 #481521 #214815
tetradic
#152148 #48153A #483C15 #154822
square
#152148 #48153A #483C15 #154822
split-complementary
#152148 #482215 #3A4815
monochromatic
#070B18 #070B19 #152148 #233777 #314CA7

Accessibility & contrast

On white

15.64
#152148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152148
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152148#FFFFFF#000000##FFFFFF
##1521481.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2649
Deuteranopia (green-blind)
#042147
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #152148;
/* rgb */ color: rgb(21, 33, 72);
/* oklch */ color: oklch(26.1% 0.074 268.1);
Tailwind
colors: {
  custom: {
    50: '#595b7b',
    500: '#152148',
    950: '#000000',
  },
}
SCSS
$custom: #152148;
$custom-light: #595b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#152148",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 225.882,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26136,
    "c": 0.07447,
    "h": 268.1
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#152148
secondary
#806F39
accent
#BB4ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #152148

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

Preview Lab → · Contrast checker → · Palette generator →

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