#15156E#15156E

#15156E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.146 H 271.6°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#15156E
RGBrgb(21, 21, 110)
HSLhsl(240, 68%, 26%)
HSVhsv(240, 81%, 43%)
CMYKcmyk(80.9%, 80.9%, 0%, 56.9%)
CIE-LABlab(14.52, 33.05, -50.49)
CIE-LCHlch(14.52, 60.35, 303.21°)
OKLaboklab(27.73% 0.0041 -0.1462)
OKLCHoklch(27.73% 0.146 271.6)
XYZxyz(3.3909, 1.8212, 14.9216)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15156E #6E6E15
analogous
#15416E #15156E #41156E
triadic
#15156E #6E1515 #156E15
tetradic
#15156E #6E1541 #6E6E15 #156E41
square
#15156E #6E1541 #6E6E15 #156E41
split-complementary
#15156E #6E4115 #416E15
monochromatic
#05051A #0B0B3B #15156E #1F1FA1 #2929D5

Accessibility & contrast

On white

15.39
#15156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#15156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15156E
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15156E#FFFFFF#000000##FFFFFF
##15156E1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00206C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #15156e;
/* rgb */ color: rgb(21, 21, 110);
/* oklch */ color: oklch(27.7% 0.146 271.6);
Tailwind
colors: {
  custom: {
    50: '#645499',
    500: '#15156e',
    950: '#000000',
  },
}
SCSS
$custom: #15156e;
$custom-light: #645499;
$custom-dark: #000000;
JSON
{
  "hex": "#15156e",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 240,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27728,
    "c": 0.14624,
    "h": 271.6
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#15156E
secondary
#A4A43A
accent
#EB3DEB
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #15156E

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

Preview Lab → · Contrast checker → · Palette generator →

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