#15187D#15187D

#15187D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.163 H 270.0°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#15187D
RGBrgb(21, 24, 125)
HSLhsl(238, 71%, 29%)
HSVhsv(238, 83%, 49%)
CMYKcmyk(83.2%, 80.8%, 0%, 51%)
CIE-LABlab(16.95, 36.61, -56.13)
CIE-LCHlch(16.95, 67.02, 303.12°)
OKLaboklab(29.98% 0 -0.1626)
OKLCHoklch(29.98% 0.163 270)
XYZxyz(4.3363, 2.2929, 19.6121)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15187D #7D7A15
analogous
#154C7D #15187D #46157D
triadic
#15187D #7D1518 #187D15
tetradic
#15187D #7D154C #7D7A15 #157D46
square
#15187D #7D154C #7D7A15 #157D46
split-complementary
#15187D #7D4615 #4C7D15
monochromatic
#04051A #0C0E49 #15187D #1E22B1 #3035DC

Accessibility & contrast

On white

14.40
#15187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#15187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15187D
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15187D#FFFFFF#000000##FFFFFF
##15187D1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #15187d;
/* rgb */ color: rgb(21, 24, 125);
/* oklch */ color: oklch(30.0% 0.163 270.0);
Tailwind
colors: {
  custom: {
    50: '#6857a4',
    500: '#15187d',
    950: '#000000',
  },
}
SCSS
$custom: #15187d;
$custom-light: #6857a4;
$custom-dark: #000000;
JSON
{
  "hex": "#15187d",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 238.269,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29976,
    "c": 0.16257,
    "h": 270
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#15187D
secondary
#B2AF3C
accent
#E93AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #15187D

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

Preview Lab → · Contrast checker → · Palette generator →

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