#153171#153171

#153171 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.116 H 263.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#153171
RGBrgb(21, 49, 113)
HSLhsl(222, 69%, 26%)
HSVhsv(222, 81%, 44%)
CMYKcmyk(81.4%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.12, 15.06, -39.98)
CIE-LCHlch(22.12, 42.73, 290.64°)
OKLaboklab(33.39% -0.013 -0.1153)
OKLCHoklch(33.39% 0.116 263.6)
XYZxyz(4.3871, 3.5478, 16.0732)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#153171 #715515
analogous
#155F71 #153171 #271571
triadic
#153171 #711531 #317115
tetradic
#153171 #71155F #715515 #157127
square
#153171 #71155F #715515 #157127
split-complementary
#153171 #712715 #5F7115
monochromatic
#050B1A #0B1B3D #153171 #1F47A5 #295ED7

Accessibility & contrast

On white

12.28
#153171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#153171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #153171
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##153171#FFFFFF#000000##FFFFFF
##1531711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #153171;
/* rgb */ color: rgb(21, 49, 113);
/* oklch */ color: oklch(33.4% 0.116 263.6);
Tailwind
colors: {
  custom: {
    50: '#62689a',
    500: '#153171',
    950: '#000000',
  },
}
SCSS
$custom: #153171;
$custom-light: #62689a;
$custom-dark: #000000;
JSON
{
  "hex": "#153171",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 221.739,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33391,
    "c": 0.116,
    "h": 263.6
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#153171
secondary
#A7863B
accent
#B63CEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #153171

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

Preview Lab → · Contrast checker → · Palette generator →

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