#15197F#15197F

#15197F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.164 H 269.8°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#15197F
RGBrgb(21, 25, 127)
HSLhsl(238, 72%, 29%)
HSVhsv(238, 83%, 50%)
CMYKcmyk(83.5%, 80.3%, 0%, 50.2%)
CIE-LABlab(17.40, 36.74, -56.67)
CIE-LCHlch(17.40, 67.54, 302.96°)
OKLaboklab(30.36% -0.0007 -0.1641)
OKLCHoklch(30.36% 0.164 269.8)
XYZxyz(4.4863, 2.3865, 20.2987)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15197F #7F7B15
analogous
#154E7F #15197F #46157F
triadic
#15197F #7F1519 #197F15
tetradic
#15197F #7F154E #7F7B15 #157F46
square
#15197F #7F154E #7F7B15 #157F46
split-complementary
#15197F #7F4615 #4E7F15
monochromatic
#04051A #0C0F4A #15197F #1E23B4 #3138DD

Accessibility & contrast

On white

14.21
#15197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#15197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15197F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15197F#FFFFFF#000000##FFFFFF
##15197F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15197f;
/* rgb */ color: rgb(21, 25, 127);
/* oklch */ color: oklch(30.4% 0.164 269.8);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#15197f',
    950: '#000000',
  },
}
SCSS
$custom: #15197f;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15197f",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 237.736,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30358,
    "c": 0.16415,
    "h": 269.8
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#15197F
secondary
#B4AF3C
accent
#E839EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15197F

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

Preview Lab → · Contrast checker → · Palette generator →

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