#12115E#12115E

#12115E is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.0% C 0.130 H 272.4°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#12115E
RGBrgb(18, 17, 94)
HSLhsl(241, 69%, 22%)
HSVhsv(241, 82%, 37%)
CMYKcmyk(80.9%, 81.9%, 0%, 63.1%)
CIE-LABlab(11.53, 29.41, -44.86)
CIE-LCHlch(11.53, 53.64, 303.24°)
OKLaboklab(25% 0.0054 -0.1298)
OKLCHoklch(25% 0.13 272.4)
XYZxyz(2.4696, 1.3374, 10.7155)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12115E #5D5E11
analogous
#11375E #12115E #39115E
triadic
#12115E #5E1211 #115E12
tetradic
#12115E #5E1137 #5D5E11 #115E39
square
#12115E #5E1137 #5D5E11 #115E39
split-complementary
#12115E #5E3911 #375E11
monochromatic
#05051A #08082A #12115E #1C1A92 #2624C6

Accessibility & contrast

On white

16.57
#12115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#12115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12115E
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12115E#FFFFFF#000000##FFFFFF
##12115E1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002260
Deuteranopia (green-blind)
#001B5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12115e;
/* rgb */ color: rgb(18, 17, 94);
/* oklch */ color: oklch(25.0% 0.130 272.4);
Tailwind
colors: {
  custom: {
    50: '#5f508d',
    500: '#12115e',
    950: '#000000',
  },
}
SCSS
$custom: #12115e;
$custom-light: #5f508d;
$custom-dark: #000000;
JSON
{
  "hex": "#12115e",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 240.779,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25,
    "c": 0.12996,
    "h": 272.4
  },
  "luminance": 0.01338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12115E

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

Preview Lab → · Contrast checker → · Palette generator →

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