#15157F#15157F

#15157F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 270.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#15157F
RGBrgb(21, 21, 127)
HSLhsl(240, 72%, 29%)
HSVhsv(240, 83%, 50%)
CMYKcmyk(83.5%, 83.5%, 0%, 50.2%)
CIE-LABlab(16.64, 38.94, -57.93)
CIE-LCHlch(16.64, 69.80, 303.91°)
OKLaboklab(29.83% 0.0004 -0.1677)
OKLCHoklch(29.83% 0.168 270.1)
XYZxyz(4.4069, 2.2276, 20.2723)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15157F #7F7F15
analogous
#154A7F #15157F #4A157F
triadic
#15157F #7F1515 #157F15
tetradic
#15157F #7F154A #7F7F15 #157F4A
square
#15157F #7F154A #7F7F15 #157F4A
split-complementary
#15157F #7F4A15 #4A7F15
monochromatic
#04041A #0C0C4A #15157F #1E1EB4 #3131DD

Accessibility & contrast

On white

14.53
#15157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#15157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15157F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15157F#FFFFFF#000000##FFFFFF
##15157F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15157f;
/* rgb */ color: rgb(21, 21, 127);
/* oklch */ color: oklch(29.8% 0.168 270.1);
Tailwind
colors: {
  custom: {
    50: '#6955a5',
    500: '#15157f',
    950: '#000000',
  },
}
SCSS
$custom: #15157f;
$custom-light: #6955a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15157f",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.29827,
    "c": 0.16773,
    "h": 270.1
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#15157F
secondary
#B4B43C
accent
#EE39EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15157F

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

Preview Lab → · Contrast checker → · Palette generator →

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