#15126E#15126E

#15126E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.3% C 0.149 H 272.0°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#15126E
RGBrgb(21, 18, 110)
HSLhsl(242, 72%, 25%)
HSVhsv(242, 84%, 43%)
CMYKcmyk(80.9%, 83.6%, 0%, 56.9%)
CIE-LABlab(13.93, 34.75, -51.47)
CIE-LCHlch(13.93, 62.11, 304.03°)
OKLaboklab(27.32% 0.0052 -0.149)
OKLCHoklch(27.32% 0.149 272)
XYZxyz(3.3391, 1.7175, 14.9044)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15126E #6B6E12
analogous
#123D6E #15126E #43126E
triadic
#15126E #6E1512 #126E15
tetradic
#15126E #6E123D #6B6E12 #126E43
square
#15126E #6E123D #6B6E12 #126E43
split-complementary
#15126E #6E4312 #3D6E12
monochromatic
#05041A #0B0939 #15126E #1F1BA3 #2923D7

Accessibility & contrast

On white

15.63
#15126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15126E
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15126E#FFFFFF#000000##FFFFFF
##15126E1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#001F6C
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #15126e;
/* rgb */ color: rgb(21, 18, 110);
/* oklch */ color: oklch(27.3% 0.149 272.0);
Tailwind
colors: {
  custom: {
    50: '#655299',
    500: '#15126e',
    950: '#000000',
  },
}
SCSS
$custom: #15126e;
$custom-light: #655299;
$custom-dark: #000000;
JSON
{
  "hex": "#15126e",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 241.957,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27315,
    "c": 0.14906,
    "h": 272
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#15126E
secondary
#A2A537
accent
#EF39E9
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #15126E

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

Preview Lab → · Contrast checker → · Palette generator →

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