#12115B#12115B

#12115B is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.6% C 0.126 H 272.8°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#12115B
RGBrgb(18, 17, 91)
HSLhsl(241, 69%, 21%)
HSVhsv(241, 81%, 36%)
CMYKcmyk(80.2%, 81.3%, 0%, 64.3%)
CIE-LABlab(11.17, 28.30, -43.46)
CIE-LCHlch(11.17, 51.86, 303.08°)
OKLaboklab(24.63% 0.0061 -0.1258)
OKLCHoklch(24.63% 0.126 272.8)
XYZxyz(2.3376, 1.2846, 10.0203)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12115B #5A5B11
analogous
#11355B #12115B #37115B
triadic
#12115B #5B1211 #115B12
tetradic
#12115B #5B1135 #5A5B11 #115B37
square
#12115B #5B1135 #5A5B11 #115B37
split-complementary
#12115B #5B3711 #355B11
monochromatic
#05051A #080727 #12115B #1C1B8F #2624C2

Accessibility & contrast

On white

16.71
#12115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12115B
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12115B#FFFFFF#000000##FFFFFF
##12115B1.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215D
Deuteranopia (green-blind)
#001A5A
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12115b;
/* rgb */ color: rgb(18, 17, 91);
/* oklch */ color: oklch(24.6% 0.126 272.8);
Tailwind
colors: {
  custom: {
    50: '#5e508a',
    500: '#12115b',
    950: '#000000',
  },
}
SCSS
$custom: #12115b;
$custom-light: #5e508a;
$custom-dark: #000000;
JSON
{
  "hex": "#12115b",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 240.811,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.24633,
    "c": 0.12591,
    "h": 272.8
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#12115B
secondary
#939434
accent
#EB3CE9
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12115B

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

Preview Lab → · Contrast checker → · Palette generator →

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