#12115C#12115C

#12115C is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.8% C 0.127 H 272.6°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#12115C
RGBrgb(18, 17, 92)
HSLhsl(241, 69%, 21%)
HSVhsv(241, 82%, 36%)
CMYKcmyk(80.4%, 81.5%, 0%, 63.9%)
CIE-LABlab(11.29, 28.67, -43.93)
CIE-LCHlch(11.29, 52.46, 303.13°)
OKLaboklab(24.76% 0.0059 -0.1271)
OKLCHoklch(24.76% 0.127 272.6)
XYZxyz(2.3810, 1.3020, 10.2490)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12115C #5B5C11
analogous
#11365C #12115C #38115C
triadic
#12115C #5C1211 #115C12
tetradic
#12115C #5C1136 #5B5C11 #115C38
square
#12115C #5C1136 #5B5C11 #115C38
split-complementary
#12115C #5C3811 #365C11
monochromatic
#05051A #080728 #12115C #1C1B90 #2624C3

Accessibility & contrast

On white

16.66
#12115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12115C
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12115C#FFFFFF#000000##FFFFFF
##12115C1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001A5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12115c;
/* rgb */ color: rgb(18, 17, 92);
/* oklch */ color: oklch(24.8% 0.127 272.6);
Tailwind
colors: {
  custom: {
    50: '#5f508b',
    500: '#12115c',
    950: '#000000',
  },
}
SCSS
$custom: #12115c;
$custom-light: #5f508b;
$custom-dark: #000000;
JSON
{
  "hex": "#12115c",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 240.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.24755,
    "c": 0.12726,
    "h": 272.6
  },
  "luminance": 0.01302
}

Semantic roles & 50–950 ramp

primary
#12115C
secondary
#939534
accent
#EC3CE9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12115C

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

Preview Lab → · Contrast checker → · Palette generator →

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