#15187E#15187E

#15187E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 269.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#15187E
RGBrgb(21, 24, 126)
HSLhsl(238, 71%, 29%)
HSVhsv(238, 83%, 49%)
CMYKcmyk(83.3%, 81%, 0%, 50.6%)
CIE-LABlab(17.08, 36.97, -56.57)
CIE-LCHlch(17.08, 67.57, 303.16°)
OKLaboklab(30.1% -0.0002 -0.1638)
OKLCHoklch(30.1% 0.164 269.9)
XYZxyz(4.4005, 2.3185, 19.9502)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15187E #7E7B15
analogous
#154D7E #15187E #47157E
triadic
#15187E #7E1518 #187E15
tetradic
#15187E #7E154D #7E7B15 #157E47
square
#15187E #7E154D #7E7B15 #157E47
split-complementary
#15187E #7E4715 #4D7E15
monochromatic
#04051A #0C0E4A #15187E #1E22B2 #3136DD

Accessibility & contrast

On white

14.35
#15187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15187E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15187E#FFFFFF#000000##FFFFFF
##15187E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #15187e;
/* rgb */ color: rgb(21, 24, 126);
/* oklch */ color: oklch(30.1% 0.164 269.9);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#15187e',
    950: '#000000',
  },
}
SCSS
$custom: #15187e;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15187e",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 238.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30098,
    "c": 0.16383,
    "h": 269.9
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #15187E

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

Preview Lab → · Contrast checker → · Palette generator →

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