#152371#152371

#152371 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.4% C 0.134 H 268.6°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#152371
RGBrgb(21, 35, 113)
HSLhsl(231, 69%, 26%)
HSVhsv(231, 81%, 44%)
CMYKcmyk(81.4%, 69%, 0%, 55.7%)
CIE-LABlab(18.16, 25.07, -46.44)
CIE-LCHlch(18.16, 52.78, 298.36°)
OKLaboklab(30.44% -0.0032 -0.1344)
OKLCHoklch(30.44% 0.134 268.6)
XYZxyz(3.8899, 2.5533, 15.9074)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152371 #716315
analogous
#155171 #152371 #351571
triadic
#152371 #711523 #237115
tetradic
#152371 #711551 #716315 #157135
square
#152371 #711551 #716315 #157135
split-complementary
#152371 #713515 #517115
monochromatic
#05081A #0B133D #152371 #1F33A5 #2944D7

Accessibility & contrast

On white

13.90
#152371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152371
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152371#FFFFFF#000000##FFFFFF
##1523711.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152371;
/* rgb */ color: rgb(21, 35, 113);
/* oklch */ color: oklch(30.4% 0.134 268.6);
Tailwind
colors: {
  custom: {
    50: '#645e9b',
    500: '#152371',
    950: '#000000',
  },
}
SCSS
$custom: #152371;
$custom-light: #645e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#152371",
  "rgb": {
    "r": 21,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 230.87,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30442,
    "c": 0.13446,
    "h": 268.6
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#152371
secondary
#A7973B
accent
#D13CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152371

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

Preview Lab → · Contrast checker → · Palette generator →

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