#15187C#15187C

#15187C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.161 H 270.1°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#15187C
RGBrgb(21, 24, 124)
HSLhsl(238, 71%, 28%)
HSVhsv(238, 83%, 49%)
CMYKcmyk(83.1%, 80.6%, 0%, 51.4%)
CIE-LABlab(16.83, 36.27, -55.70)
CIE-LCHlch(16.83, 66.46, 303.07°)
OKLaboklab(29.85% 0.0002 -0.1613)
OKLCHoklch(29.85% 0.161 270.1)
XYZxyz(4.2727, 2.2674, 19.2773)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15187C #7C7915
analogous
#154B7C #15187C #45157C
triadic
#15187C #7C1518 #187C15
tetradic
#15187C #7C154B #7C7915 #157C45
square
#15187C #7C154B #7C7915 #157C45
split-complementary
#15187C #7C4515 #4B7C15
monochromatic
#04051A #0C0E48 #15187C #1E22B0 #3035DC

Accessibility & contrast

On white

14.45
#15187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15187C
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15187C#FFFFFF#000000##FFFFFF
##15187C1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15187c;
/* rgb */ color: rgb(21, 24, 124);
/* oklch */ color: oklch(29.9% 0.161 270.1);
Tailwind
colors: {
  custom: {
    50: '#6857a3',
    500: '#15187c',
    950: '#000000',
  },
}
SCSS
$custom: #15187c;
$custom-light: #6857a3;
$custom-dark: #000000;
JSON
{
  "hex": "#15187c",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 238.252,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29854,
    "c": 0.16131,
    "h": 270.1
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #15187C

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

Preview Lab → · Contrast checker → · Palette generator →

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