#15187F#15187F

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

Color values

HEX#15187F
RGBrgb(21, 24, 127)
HSLhsl(238, 72%, 29%)
HSVhsv(238, 83%, 50%)
CMYKcmyk(83.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.20, 37.31, -57.00)
CIE-LCHlch(17.20, 68.12, 303.21°)
OKLaboklab(30.22% -0.0004 -0.1651)
OKLCHoklch(30.22% 0.165 269.9)
XYZxyz(4.4654, 2.3445, 20.2917)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15187F #7F7C15
analogous
#154D7F #15187F #47157F
triadic
#15187F #7F1518 #187F15
tetradic
#15187F #7F154D #7F7C15 #157F47
square
#15187F #7F154D #7F7C15 #157F47
split-complementary
#15187F #7F4715 #4D7F15
monochromatic
#04051A #0C0E4A #15187F #1E22B4 #3136DD

Accessibility & contrast

On white

14.30
#15187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#15187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15187F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15187F#FFFFFF#000000##FFFFFF
##15187F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #15187f;
/* rgb */ color: rgb(21, 24, 127);
/* oklch */ color: oklch(30.2% 0.165 269.9);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#15187f',
    950: '#000000',
  },
}
SCSS
$custom: #15187f;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15187f",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 238.302,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3022,
    "c": 0.16508,
    "h": 269.9
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#15187F
secondary
#B4B13C
accent
#E939EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15187F

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

Preview Lab → · Contrast checker → · Palette generator →

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