#15126C#15126C

#15126C is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.147 H 272.2°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#15126C
RGBrgb(21, 18, 108)
HSLhsl(242, 71%, 25%)
HSVhsv(242, 83%, 42%)
CMYKcmyk(80.6%, 83.3%, 0%, 57.6%)
CIE-LABlab(13.68, 34.06, -50.58)
CIE-LCHlch(13.68, 60.98, 303.96°)
OKLaboklab(27.07% 0.0057 -0.1464)
OKLCHoklch(27.07% 0.147 272.2)
XYZxyz(3.2314, 1.6744, 14.3373)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15126C #696C12
analogous
#123C6C #15126C #42126C
triadic
#15126C #6C1512 #126C15
tetradic
#15126C #6C123C #696C12 #126C42
square
#15126C #6C123C #696C12 #126C42
split-complementary
#15126C #6C4212 #3C6C12
monochromatic
#05041A #0B0938 #15126C #1F1BA0 #2923D5

Accessibility & contrast

On white

15.73
#15126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#15126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15126C
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15126C#FFFFFF#000000##FFFFFF
##15126C1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276E
Deuteranopia (green-blind)
#001E6A
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #15126c;
/* rgb */ color: rgb(21, 18, 108);
/* oklch */ color: oklch(27.1% 0.147 272.2);
Tailwind
colors: {
  custom: {
    50: '#645297',
    500: '#15126c',
    950: '#000000',
  },
}
SCSS
$custom: #15126c;
$custom-light: #645297;
$custom-dark: #000000;
JSON
{
  "hex": "#15126c",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 242,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27065,
    "c": 0.14651,
    "h": 272.2
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#15126C
secondary
#A0A336
accent
#EE3AE8
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020E
muted
#7A787E

Preview Lab

Preview with #15126C

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

Preview Lab → · Contrast checker → · Palette generator →

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