#12115D#12115D

#12115D is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.9% C 0.129 H 272.5°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#12115D
RGBrgb(18, 17, 93)
HSLhsl(241, 69%, 22%)
HSVhsv(241, 82%, 36%)
CMYKcmyk(80.6%, 81.7%, 0%, 63.5%)
CIE-LABlab(11.41, 29.04, -44.40)
CIE-LCHlch(11.41, 53.05, 303.19°)
OKLaboklab(24.88% 0.0056 -0.1285)
OKLCHoklch(24.88% 0.129 272.5)
XYZxyz(2.4250, 1.3196, 10.4807)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12115D #5C5D11
analogous
#11365D #12115D #38115D
triadic
#12115D #5D1211 #115D12
tetradic
#12115D #5D1136 #5C5D11 #115D38
square
#12115D #5D1136 #5C5D11 #115D38
split-complementary
#12115D #5D3811 #365D11
monochromatic
#05051A #080829 #12115D #1C1A91 #2624C4

Accessibility & contrast

On white

16.61
#12115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#12115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12115D
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12115D#FFFFFF#000000##FFFFFF
##12115D1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001B5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12115d;
/* rgb */ color: rgb(18, 17, 93);
/* oklch */ color: oklch(24.9% 0.129 272.5);
Tailwind
colors: {
  custom: {
    50: '#5f508c',
    500: '#12115d',
    950: '#000000',
  },
}
SCSS
$custom: #12115d;
$custom-light: #5f508c;
$custom-dark: #000000;
JSON
{
  "hex": "#12115d",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 240.789,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.24878,
    "c": 0.12862,
    "h": 272.5
  },
  "luminance": 0.0132
}

Semantic roles & 50–950 ramp

primary
#12115D
secondary
#949634
accent
#EC3CEA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12115D

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

Preview Lab → · Contrast checker → · Palette generator →

#12115D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva