#15126A#15126A

#15126A is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.8% C 0.144 H 272.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#15126A
RGBrgb(21, 18, 106)
HSLhsl(242, 71%, 24%)
HSVhsv(242, 83%, 42%)
CMYKcmyk(80.2%, 83%, 0%, 58.4%)
CIE-LABlab(13.43, 33.37, -49.69)
CIE-LCHlch(13.43, 59.85, 303.88°)
OKLaboklab(26.82% 0.0062 -0.1438)
OKLCHoklch(26.82% 0.144 272.4)
XYZxyz(3.1262, 1.6323, 13.7832)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15126A #676A12
analogous
#123B6A #15126A #41126A
triadic
#15126A #6A1512 #126A15
tetradic
#15126A #6A123B #676A12 #126A41
square
#15126A #6A123B #676A12 #126A41
split-complementary
#15126A #6A4112 #3B6A12
monochromatic
#05041A #0B0936 #15126A #1F1B9E #2A24D3

Accessibility & contrast

On white

15.83
#15126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#15126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15126A
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15126A#FFFFFF#000000##FFFFFF
##15126A1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#001E68
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #15126a;
/* rgb */ color: rgb(21, 18, 106);
/* oklch */ color: oklch(26.8% 0.144 272.4);
Tailwind
colors: {
  custom: {
    50: '#645296',
    500: '#15126a',
    950: '#000000',
  },
}
SCSS
$custom: #15126a;
$custom-light: #645296;
$custom-dark: #000000;
JSON
{
  "hex": "#15126a",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 242.045,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.26817,
    "c": 0.14393,
    "h": 272.4
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#15126A
secondary
#9EA236
accent
#EE3AE8
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #15126A

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

Preview Lab → · Contrast checker → · Palette generator →

#15126A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva