#15157E#15157E

#15157E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.167 H 270.2°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#15157E
RGBrgb(21, 21, 126)
HSLhsl(240, 71%, 29%)
HSVhsv(240, 83%, 49%)
CMYKcmyk(83.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.51, 38.60, -57.50)
CIE-LCHlch(16.51, 69.26, 303.87°)
OKLaboklab(29.7% 0.0006 -0.1665)
OKLCHoklch(29.7% 0.167 270.2)
XYZxyz(4.3420, 2.2016, 19.9307)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15157E #7E7E15
analogous
#154A7E #15157E #4A157E
triadic
#15157E #7E1515 #157E15
tetradic
#15157E #7E154A #7E7E15 #157E4A
square
#15157E #7E154A #7E7E15 #157E4A
split-complementary
#15157E #7E4A15 #4A7E15
monochromatic
#04041A #0C0C4A #15157E #1E1EB2 #3131DD

Accessibility & contrast

On white

14.58
#15157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#15157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15157E
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15157E#FFFFFF#000000##FFFFFF
##15157E1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15157e;
/* rgb */ color: rgb(21, 21, 126);
/* oklch */ color: oklch(29.7% 0.167 270.2);
Tailwind
colors: {
  custom: {
    50: '#6955a5',
    500: '#15157e',
    950: '#000000',
  },
}
SCSS
$custom: #15157e;
$custom-light: #6955a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15157e",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29702,
    "c": 0.1665,
    "h": 270.2
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#15157E
secondary
#B3B33C
accent
#EE3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15157E

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

Preview Lab → · Contrast checker → · Palette generator →

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