#15186B#15186B

#15186B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.139 H 271.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#15186B
RGBrgb(21, 24, 107)
HSLhsl(238, 67%, 25%)
HSVhsv(238, 80%, 42%)
CMYKcmyk(80.4%, 77.6%, 0%, 58%)
CIE-LABlab(14.81, 30.12, -48.05)
CIE-LCHlch(14.81, 56.71, 302.08°)
OKLaboklab(27.83% 0.0034 -0.1391)
OKLCHoklch(27.83% 0.139 271.4)
XYZxyz(3.2888, 1.8739, 14.0954)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15186B #6B6815
analogous
#15436B #15186B #3D156B
triadic
#15186B #6B1518 #186B15
tetradic
#15186B #6B1543 #6B6815 #156B3D
square
#15186B #6B1543 #6B6815 #156B3D
split-complementary
#15186B #6B3D15 #436B15
monochromatic
#05061A #0B0D38 #15186B #1F239E #292FD1

Accessibility & contrast

On white

15.27
#15186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#15186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15186B
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15186B#FFFFFF#000000##FFFFFF
##15186B1.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #15186b;
/* rgb */ color: rgb(21, 24, 107);
/* oklch */ color: oklch(27.8% 0.139 271.4);
Tailwind
colors: {
  custom: {
    50: '#635696',
    500: '#15186b',
    950: '#000000',
  },
}
SCSS
$custom: #15186b;
$custom-light: #635696;
$custom-dark: #000000;
JSON
{
  "hex": "#15186b",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 237.907,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2783,
    "c": 0.13915,
    "h": 271.4
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#15186B
secondary
#A29E3A
accent
#E43EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #15186B

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

Preview Lab → · Contrast checker → · Palette generator →

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