#151870#151870

#151870 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.146 H 271.0°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#151870
RGBrgb(21, 24, 112)
HSLhsl(238, 68%, 26%)
HSVhsv(238, 81%, 44%)
CMYKcmyk(81.2%, 78.6%, 0%, 56.1%)
CIE-LABlab(15.39, 31.97, -50.35)
CIE-LCHlch(15.39, 59.64, 302.41°)
OKLaboklab(28.42% 0.0025 -0.1458)
OKLCHoklch(28.42% 0.146 271)
XYZxyz(3.5595, 1.9822, 15.5211)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151870 #706D15
analogous
#154570 #151870 #3F1570
triadic
#151870 #701518 #187015
tetradic
#151870 #701545 #706D15 #15703F
square
#151870 #701545 #706D15 #15703F
split-complementary
#151870 #703F15 #457015
monochromatic
#05061A #0B0D3C #151870 #1F23A4 #292ED7

Accessibility & contrast

On white

15.04
#151870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#151870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151870
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151870#FFFFFF#000000##FFFFFF
##1518701.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00226E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151870;
/* rgb */ color: rgb(21, 24, 112);
/* oklch */ color: oklch(28.4% 0.146 271.0);
Tailwind
colors: {
  custom: {
    50: '#65569a',
    500: '#151870',
    950: '#000000',
  },
}
SCSS
$custom: #151870;
$custom-light: #65569a;
$custom-dark: #000000;
JSON
{
  "hex": "#151870",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 238.022,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28416,
    "c": 0.14582,
    "h": 271
  },
  "luminance": 0.01983
}

Semantic roles & 50–950 ramp

primary
#151870
secondary
#A6A33B
accent
#E63DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151870

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

Preview Lab → · Contrast checker → · Palette generator →

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