#15166E#15166E

#15166E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.145 H 271.5°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#15166E
RGBrgb(21, 22, 110)
HSLhsl(239, 68%, 26%)
HSVhsv(239, 81%, 43%)
CMYKcmyk(80.9%, 80%, 0%, 56.9%)
CIE-LABlab(14.73, 32.46, -50.15)
CIE-LCHlch(14.73, 59.74, 302.91°)
OKLaboklab(27.88% 0.0037 -0.1452)
OKLCHoklch(27.88% 0.145 271.5)
XYZxyz(3.4097, 1.8587, 14.9279)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15166E #6E6D15
analogous
#15426E #15166E #40156E
triadic
#15166E #6E1516 #166E15
tetradic
#15166E #6E1542 #6E6D15 #156E40
square
#15166E #6E1542 #6E6D15 #156E40
split-complementary
#15166E #6E4015 #426E15
monochromatic
#05051A #0B0C3B #15166E #1F20A1 #292BD5

Accessibility & contrast

On white

15.31
#15166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#15166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15166E
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15166E#FFFFFF#000000##FFFFFF
##15166E1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #15166e;
/* rgb */ color: rgb(21, 22, 110);
/* oklch */ color: oklch(27.9% 0.145 271.5);
Tailwind
colors: {
  custom: {
    50: '#645599',
    500: '#15166e',
    950: '#000000',
  },
}
SCSS
$custom: #15166e;
$custom-light: #645599;
$custom-dark: #000000;
JSON
{
  "hex": "#15166e",
  "rgb": {
    "r": 21,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 239.326,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27875,
    "c": 0.14524,
    "h": 271.5
  },
  "luminance": 0.01859
}

Semantic roles & 50–950 ramp

primary
#15166E
secondary
#A4A33A
accent
#E93DEB
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #15166E

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

Preview Lab → · Contrast checker → · Palette generator →

#15166E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva