#15198F#15198F

#15198F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.184 H 268.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#15198F
RGBrgb(21, 25, 143)
HSLhsl(238, 74%, 32%)
HSVhsv(238, 85%, 56%)
CMYKcmyk(85.3%, 82.5%, 0%, 43.9%)
CIE-LABlab(19.38, 42.21, -63.45)
CIE-LCHlch(19.38, 76.21, 303.64°)
OKLaboklab(32.32% -0.0038 -0.1838)
OKLCHoklch(32.32% 0.184 268.8)
XYZxyz(5.6131, 2.8372, 26.2331)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15198F #8F8B15
analogous
#15568F #15198F #4E158F
triadic
#15198F #8F1519 #198F15
tetradic
#15198F #8F1556 #8F8B15 #158F4E
square
#15198F #8F1556 #8F8B15 #158F4E
split-complementary
#15198F #8F4E15 #568F15
monochromatic
#050624 #0D105A #15198F #1D22C4 #3C41E2

Accessibility & contrast

On white

13.40
#15198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#15198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15198F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15198F#FFFFFF#000000##FFFFFF
##15198F1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #15198f;
/* rgb */ color: rgb(21, 25, 143);
/* oklch */ color: oklch(32.3% 0.184 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d59b1',
    500: '#15198f',
    950: '#000000',
  },
}
SCSS
$custom: #15198f;
$custom-light: #6d59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#15198f",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 238.033,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3232,
    "c": 0.18382,
    "h": 268.8
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#15198F
secondary
#C2BE3E
accent
#EB37F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #15198F

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

Preview Lab → · Contrast checker → · Palette generator →

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