#15156B#15156B

#15156B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.142 H 271.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#15156B
RGBrgb(21, 21, 107)
HSLhsl(240, 67%, 25%)
HSVhsv(240, 80%, 42%)
CMYKcmyk(80.4%, 80.4%, 0%, 58%)
CIE-LABlab(14.16, 31.98, -49.13)
CIE-LCHlch(14.16, 58.62, 303.06°)
OKLaboklab(27.37% 0.0047 -0.1422)
OKLCHoklch(27.37% 0.142 271.9)
XYZxyz(3.2304, 1.7569, 14.0759)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15156B #6B6B15
analogous
#15406B #15156B #40156B
triadic
#15156B #6B1515 #156B15
tetradic
#15156B #6B1540 #6B6B15 #156B40
square
#15156B #6B1540 #6B6B15 #156B40
split-complementary
#15156B #6B4015 #406B15
monochromatic
#05051A #0B0B38 #15156B #1F1F9E #2929D1

Accessibility & contrast

On white

15.54
#15156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#15156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15156B
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15156B#FFFFFF#000000##FFFFFF
##15156B1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286D
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #15156b;
/* rgb */ color: rgb(21, 21, 107);
/* oklch */ color: oklch(27.4% 0.142 271.9);
Tailwind
colors: {
  custom: {
    50: '#645496',
    500: '#15156b',
    950: '#000000',
  },
}
SCSS
$custom: #15156b;
$custom-light: #645496;
$custom-dark: #000000;
JSON
{
  "hex": "#15156b",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 240,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27366,
    "c": 0.14231,
    "h": 271.9
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#15156B
secondary
#A2A23A
accent
#EA3EEA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #15156B

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

Preview Lab → · Contrast checker → · Palette generator →

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