#152170#152170

#152170 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.136 H 269.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#152170
RGBrgb(21, 33, 112)
HSLhsl(232, 68%, 26%)
HSVhsv(232, 81%, 44%)
CMYKcmyk(81.2%, 70.5%, 0%, 56.1%)
CIE-LABlab(17.54, 26.06, -46.82)
CIE-LCHlch(17.54, 53.58, 299.10°)
OKLaboklab(29.96% -0.002 -0.1355)
OKLCHoklch(29.96% 0.136 269.2)
XYZxyz(3.7767, 2.4166, 15.5935)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152170 #706415
analogous
#154E70 #152170 #361570
triadic
#152170 #701521 #217015
tetradic
#152170 #70154E #706415 #157036
square
#152170 #70154E #706415 #157036
split-complementary
#152170 #703615 #4E7015
monochromatic
#05081A #0B123C #152170 #1F30A4 #2940D7

Accessibility & contrast

On white

14.16
#152170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#152170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152170
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152170#FFFFFF#000000##FFFFFF
##1521701.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152170;
/* rgb */ color: rgb(21, 33, 112);
/* oklch */ color: oklch(30.0% 0.136 269.2);
Tailwind
colors: {
  custom: {
    50: '#645c9a',
    500: '#152170',
    950: '#000000',
  },
}
SCSS
$custom: #152170;
$custom-light: #645c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#152170",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 232.088,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29958,
    "c": 0.13553,
    "h": 269.2
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#152170
secondary
#A6983B
accent
#D43DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152170

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

Preview Lab → · Contrast checker → · Palette generator →

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