#15157C#15157C

#15157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.164 H 270.4°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#15157C
RGBrgb(21, 21, 124)
HSLhsl(240, 71%, 28%)
HSVhsv(240, 83%, 49%)
CMYKcmyk(83.1%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.26, 37.93, -56.65)
CIE-LCHlch(16.26, 68.17, 303.80°)
OKLaboklab(29.45% 0.001 -0.164)
OKLCHoklch(29.45% 0.164 270.4)
XYZxyz(4.2143, 2.1505, 19.2579)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15157C #7C7C15
analogous
#15487C #15157C #48157C
triadic
#15157C #7C1515 #157C15
tetradic
#15157C #7C1548 #7C7C15 #157C48
square
#15157C #7C1548 #7C7C15 #157C48
split-complementary
#15157C #7C4815 #487C15
monochromatic
#04041A #0C0C48 #15157C #1E1EB0 #3030DC

Accessibility & contrast

On white

14.68
#15157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#15157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15157C
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15157C#FFFFFF#000000##FFFFFF
##15157C1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #15157c;
/* rgb */ color: rgb(21, 21, 124);
/* oklch */ color: oklch(29.5% 0.164 270.4);
Tailwind
colors: {
  custom: {
    50: '#6855a3',
    500: '#15157c',
    950: '#000000',
  },
}
SCSS
$custom: #15157c;
$custom-light: #6855a3;
$custom-dark: #000000;
JSON
{
  "hex": "#15157c",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29452,
    "c": 0.16402,
    "h": 270.4
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#15157C
secondary
#B1B13C
accent
#EE3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #15157C

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

Preview Lab → · Contrast checker → · Palette generator →

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