#15197B#15197B

#15197B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.159 H 270.0°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#15197B
RGBrgb(21, 25, 123)
HSLhsl(238, 71%, 28%)
HSVhsv(238, 83%, 48%)
CMYKcmyk(82.9%, 79.7%, 0%, 51.8%)
CIE-LABlab(16.91, 35.33, -54.92)
CIE-LCHlch(16.91, 65.31, 302.75°)
OKLaboklab(29.88% 0.0001 -0.1591)
OKLCHoklch(29.88% 0.159 270)
XYZxyz(4.2308, 2.2843, 18.9530)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15197B #7B7715
analogous
#154C7B #15197B #44157B
triadic
#15197B #7B1519 #197B15
tetradic
#15197B #7B154C #7B7715 #157B44
square
#15197B #7B154C #7B7715 #157B44
split-complementary
#15197B #7B4415 #4C7B15
monochromatic
#04051A #0C0E47 #15197B #1E24AF #2F36DB

Accessibility & contrast

On white

14.41
#15197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#15197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15197B
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15197B#FFFFFF#000000##FFFFFF
##15197B1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #15197b;
/* rgb */ color: rgb(21, 25, 123);
/* oklch */ color: oklch(29.9% 0.159 270.0);
Tailwind
colors: {
  custom: {
    50: '#6857a2',
    500: '#15197b',
    950: '#000000',
  },
}
SCSS
$custom: #15197b;
$custom-light: #6857a2;
$custom-dark: #000000;
JSON
{
  "hex": "#15197b",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 237.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29876,
    "c": 0.15908,
    "h": 270
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #15197B

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

Preview Lab → · Contrast checker → · Palette generator →

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