#151874#151874

#151874 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.151 H 270.7°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#151874
RGBrgb(21, 24, 116)
HSLhsl(238, 69%, 27%)
HSVhsv(238, 82%, 45%)
CMYKcmyk(81.9%, 79.3%, 0%, 54.5%)
CIE-LABlab(15.87, 33.42, -52.16)
CIE-LCHlch(15.87, 61.95, 302.65°)
OKLaboklab(28.89% 0.0017 -0.151)
OKLCHoklch(28.89% 0.151 270.7)
XYZxyz(3.7872, 2.0732, 16.7202)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151874 #747115
analogous
#154874 #151874 #421574
triadic
#151874 #741518 #187415
tetradic
#151874 #741548 #747115 #157442
square
#151874 #741548 #747115 #157442
split-complementary
#151874 #744215 #487415
monochromatic
#05051A #0C0D40 #151874 #1E23A8 #2B30D9

Accessibility & contrast

On white

14.84
#151874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151874
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151874#FFFFFF#000000##FFFFFF
##1518741.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151874;
/* rgb */ color: rgb(21, 24, 116);
/* oklch */ color: oklch(28.9% 0.151 270.7);
Tailwind
colors: {
  custom: {
    50: '#66569d',
    500: '#151874',
    950: '#000000',
  },
}
SCSS
$custom: #151874;
$custom-light: #66569d;
$custom-dark: #000000;
JSON
{
  "hex": "#151874",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 238.105,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.28891,
    "c": 0.15105,
    "h": 270.7
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#151874
secondary
#AAA63B
accent
#E73CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151874

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

Preview Lab → · Contrast checker → · Palette generator →

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