#15168F#15168F

#15168F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.186 H 269.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#15168F
RGBrgb(21, 22, 143)
HSLhsl(240, 74%, 32%)
HSVhsv(240, 85%, 56%)
CMYKcmyk(85.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(18.87, 43.72, -64.30)
CIE-LCHlch(18.87, 77.75, 304.21°)
OKLaboklab(31.96% -0.0032 -0.1862)
OKLCHoklch(31.96% 0.186 269)
XYZxyz(5.5524, 2.7157, 26.2128)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15168F #8F8E15
analogous
#15538F #15168F #51158F
triadic
#15168F #8F1516 #168F15
tetradic
#15168F #8F1553 #8F8E15 #158F51
square
#15168F #8F1553 #8F8E15 #158F51
split-complementary
#15168F #8F5115 #538F15
monochromatic
#050624 #0D0E5A #15168F #1D1EC4 #3C3DE2

Accessibility & contrast

On white

13.61
#15168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#15168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15168F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15168F#FFFFFF#000000##FFFFFF
##15168F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #15168f;
/* rgb */ color: rgb(21, 22, 143);
/* oklch */ color: oklch(32.0% 0.186 269.0);
Tailwind
colors: {
  custom: {
    50: '#6e57b1',
    500: '#15168f',
    950: '#000000',
  },
}
SCSS
$custom: #15168f;
$custom-light: #6e57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#15168f",
  "rgb": {
    "r": 21,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 239.508,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.18621,
    "h": 269
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #15168F

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

Preview Lab → · Contrast checker → · Palette generator →

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