#15168D#15168D

#15168D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.184 H 269.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#15168D
RGBrgb(21, 22, 141)
HSLhsl(240, 74%, 32%)
HSVhsv(240, 85%, 55%)
CMYKcmyk(85.1%, 84.4%, 0%, 44.7%)
CIE-LABlab(18.61, 43.07, -63.48)
CIE-LCHlch(18.61, 76.71, 304.15°)
OKLaboklab(31.71% -0.0028 -0.1838)
OKLCHoklch(31.71% 0.184 269.1)
XYZxyz(5.4022, 2.6557, 25.4220)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15168D #8D8C15
analogous
#15528D #15168D #50158D
triadic
#15168D #8D1516 #168D15
tetradic
#15168D #8D1552 #8D8C15 #158D50
square
#15168D #8D1552 #8D8C15 #158D50
split-complementary
#15168D #8D5015 #528D15
monochromatic
#050522 #0D0E58 #15168D #1D1EC2 #3B3CE2

Accessibility & contrast

On white

13.71
#15168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#15168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15168D
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15168D#FFFFFF#000000##FFFFFF
##15168D1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00278B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #15168d;
/* rgb */ color: rgb(21, 22, 141);
/* oklch */ color: oklch(31.7% 0.184 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d57b0',
    500: '#15168d',
    950: '#000000',
  },
}
SCSS
$custom: #15168d;
$custom-light: #6d57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#15168d",
  "rgb": {
    "r": 21,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 239.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3171,
    "c": 0.18383,
    "h": 269.1
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#15168D
secondary
#C1C03D
accent
#EF37F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #15168D

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

Preview Lab → · Contrast checker → · Palette generator →

#15168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva