#151173#151173

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

Color values

HEX#151173
RGBrgb(21, 17, 115)
HSLhsl(242, 74%, 26%)
HSVhsv(242, 85%, 45%)
CMYKcmyk(81.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(14.39, 36.98, -53.96)
CIE-LCHlch(14.39, 65.42, 304.43°)
OKLaboklab(27.82% 0.0042 -0.1562)
OKLCHoklch(27.82% 0.156 271.6)
XYZxyz(3.6032, 1.7977, 16.3734)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151173 #6F7311
analogous
#113E73 #151173 #461173
triadic
#151173 #731511 #117315
tetradic
#151173 #73113E #6F7311 #117346
square
#151173 #73113E #6F7311 #117346
split-complementary
#151173 #734611 #3E7311
monochromatic
#05041B #0B093E #151173 #1F19A8 #2821DE

Accessibility & contrast

On white

15.45
#151173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151173
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151173#FFFFFF#000000##FFFFFF
##1511731.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002976
Deuteranopia (green-blind)
#001F71
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151173;
/* rgb */ color: rgb(21, 17, 115);
/* oklch */ color: oklch(27.8% 0.156 271.6);
Tailwind
colors: {
  custom: {
    50: '#66529c',
    500: '#151173',
    950: '#000000',
  },
}
SCSS
$custom: #151173;
$custom-light: #66529c;
$custom-dark: #000000;
JSON
{
  "hex": "#151173",
  "rgb": {
    "r": 21,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 242.449,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.27819,
    "c": 0.15623,
    "h": 271.6
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#151173
secondary
#A5AA36
accent
#F137E9
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151173

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

Preview Lab → · Contrast checker → · Palette generator →

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