#15186D#15186D

#15186D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.142 H 271.2°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#15186D
RGBrgb(21, 24, 109)
HSLhsl(238, 68%, 25%)
HSVhsv(238, 81%, 43%)
CMYKcmyk(80.7%, 78%, 0%, 57.3%)
CIE-LABlab(15.04, 30.87, -48.98)
CIE-LCHlch(15.04, 57.89, 302.22°)
OKLaboklab(28.06% 0.003 -0.1418)
OKLCHoklch(28.06% 0.142 271.2)
XYZxyz(3.3953, 1.9165, 14.6560)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15186D #6D6A15
analogous
#15446D #15186D #3E156D
triadic
#15186D #6D1518 #186D15
tetradic
#15186D #6D1544 #6D6A15 #156D3E
square
#15186D #6D1544 #6D6A15 #156D3E
split-complementary
#15186D #6D3E15 #446D15
monochromatic
#05061A #0B0D3A #15186D #1F23A0 #292FD4

Accessibility & contrast

On white

15.18
#15186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#15186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15186D
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15186D#FFFFFF#000000##FFFFFF
##15186D1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #15186d;
/* rgb */ color: rgb(21, 24, 109);
/* oklch */ color: oklch(28.1% 0.142 271.2);
Tailwind
colors: {
  custom: {
    50: '#645698',
    500: '#15186d',
    950: '#000000',
  },
}
SCSS
$custom: #15186d;
$custom-light: #645698;
$custom-dark: #000000;
JSON
{
  "hex": "#15186d",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 237.955,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28064,
    "c": 0.14183,
    "h": 271.2
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#15186D
secondary
#A3A03A
accent
#E53DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #15186D

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

Preview Lab → · Contrast checker → · Palette generator →

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