#15197E#15197E

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

Color values

HEX#15197E
RGBrgb(21, 25, 126)
HSLhsl(238, 71%, 29%)
HSVhsv(238, 83%, 49%)
CMYKcmyk(83.3%, 80.2%, 0%, 50.6%)
CIE-LABlab(17.28, 36.39, -56.24)
CIE-LCHlch(17.28, 66.99, 302.91°)
OKLaboklab(30.24% -0.0005 -0.1629)
OKLCHoklch(30.24% 0.163 269.8)
XYZxyz(4.4215, 2.3605, 19.9572)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15197E #7E7A15
analogous
#154E7E #15197E #46157E
triadic
#15197E #7E1519 #197E15
tetradic
#15197E #7E154E #7E7A15 #157E46
square
#15197E #7E154E #7E7A15 #157E46
split-complementary
#15197E #7E4615 #4E7E15
monochromatic
#04051A #0C0F4A #15197E #1E23B2 #3137DD

Accessibility & contrast

On white

14.26
#15197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#15197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15197E
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15197E#FFFFFF#000000##FFFFFF
##15197E1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15197e;
/* rgb */ color: rgb(21, 25, 126);
/* oklch */ color: oklch(30.2% 0.163 269.8);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#15197e',
    950: '#000000',
  },
}
SCSS
$custom: #15197e;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15197e",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 237.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30237,
    "c": 0.16289,
    "h": 269.8
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#15197E
secondary
#B3AF3C
accent
#E73AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #15197E

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

Preview Lab → · Contrast checker → · Palette generator →

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