#15187B#15187B

#15187B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.160 H 270.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#15187B
RGBrgb(21, 24, 123)
HSLhsl(238, 71%, 28%)
HSVhsv(238, 83%, 48%)
CMYKcmyk(82.9%, 80.5%, 0%, 51.8%)
CIE-LABlab(16.71, 35.91, -55.26)
CIE-LCHlch(16.71, 65.90, 303.02°)
OKLaboklab(29.73% 0.0004 -0.16)
OKLCHoklch(29.73% 0.16 270.1)
XYZxyz(4.2098, 2.2423, 18.9460)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15187B #7B7815
analogous
#154B7B #15187B #45157B
triadic
#15187B #7B1518 #187B15
tetradic
#15187B #7B154B #7B7815 #157B45
square
#15187B #7B154B #7B7815 #157B45
split-complementary
#15187B #7B4515 #4B7B15
monochromatic
#04051A #0C0E47 #15187B #1E22AF #2F34DB

Accessibility & contrast

On white

14.50
#15187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#15187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15187B
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15187B#FFFFFF#000000##FFFFFF
##15187B1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15187b;
/* rgb */ color: rgb(21, 24, 123);
/* oklch */ color: oklch(29.7% 0.160 270.1);
Tailwind
colors: {
  custom: {
    50: '#6857a2',
    500: '#15187b',
    950: '#000000',
  },
}
SCSS
$custom: #15187b;
$custom-light: #6857a2;
$custom-dark: #000000;
JSON
{
  "hex": "#15187b",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 238.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29733,
    "c": 0.16004,
    "h": 270.1
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#15187B
secondary
#B0AD3B
accent
#E83AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #15187B

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

Preview Lab → · Contrast checker → · Palette generator →

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