#151371#151371

#151371 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.152 H 271.6°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#151371
RGBrgb(21, 19, 113)
HSLhsl(241, 71%, 26%)
HSVhsv(241, 83%, 44%)
CMYKcmyk(81.4%, 83.2%, 0%, 55.7%)
CIE-LABlab(14.50, 35.24, -52.48)
CIE-LCHlch(14.50, 63.22, 303.88°)
OKLaboklab(27.82% 0.0041 -0.1519)
OKLCHoklch(27.82% 0.152 271.6)
XYZxyz(3.5218, 1.8170, 15.7847)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151371 #6F7113
analogous
#134071 #151371 #441371
triadic
#151371 #711513 #137115
tetradic
#151371 #711340 #6F7113 #137144
square
#151371 #711340 #6F7113 #137144
split-complementary
#151371 #714413 #407113
monochromatic
#05041A #0B0A3D #151371 #1F1CA5 #2825DA

Accessibility & contrast

On white

15.40
#151371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151371
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151371#FFFFFF#000000##FFFFFF
##1513711.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151371;
/* rgb */ color: rgb(21, 19, 113);
/* oklch */ color: oklch(27.8% 0.152 271.6);
Tailwind
colors: {
  custom: {
    50: '#65539b',
    500: '#151371',
    950: '#000000',
  },
}
SCSS
$custom: #151371;
$custom-light: #65539b;
$custom-dark: #000000;
JSON
{
  "hex": "#151371",
  "rgb": {
    "r": 21,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 241.277,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.27821,
    "c": 0.15198,
    "h": 271.6
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#151371
secondary
#A5A838
accent
#EE3AEA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151371

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

Preview Lab → · Contrast checker → · Palette generator →

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