#152173#152173

#152173 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.140 H 269.1°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#152173
RGBrgb(21, 33, 115)
HSLhsl(232, 69%, 27%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(81.7%, 71.3%, 0%, 54.9%)
CIE-LABlab(17.85, 27.24, -48.24)
CIE-LCHlch(17.85, 55.40, 299.45°)
OKLaboklab(30.28% -0.0022 -0.1397)
OKLCHoklch(30.28% 0.14 269.1)
XYZxyz(3.9466, 2.4845, 16.4879)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152173 #736715
analogous
#155073 #152173 #381573
triadic
#152173 #731521 #217315
tetradic
#152173 #731550 #736715 #157338
square
#152173 #731550 #736715 #157338
split-complementary
#152173 #733815 #507315
monochromatic
#05071A #0C123F #152173 #1E30A7 #2A40D8

Accessibility & contrast

On white

14.03
#152173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#152173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152173
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152173#FFFFFF#000000##FFFFFF
##1521731.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152173;
/* rgb */ color: rgb(21, 33, 115);
/* oklch */ color: oklch(30.3% 0.140 269.1);
Tailwind
colors: {
  custom: {
    50: '#655c9c',
    500: '#152173',
    950: '#000000',
  },
}
SCSS
$custom: #152173;
$custom-light: #655c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#152173",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 232.34,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30278,
    "c": 0.13971,
    "h": 269.1
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#152173
secondary
#A99B3B
accent
#D53CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152173

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

Preview Lab → · Contrast checker → · Palette generator →

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