#12118E#12118E

#12118E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.189 H 268.4°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#12118E
RGBrgb(18, 17, 142)
HSLhsl(240, 79%, 31%)
HSVhsv(240, 88%, 56%)
CMYKcmyk(87.3%, 88%, 0%, 44.3%)
CIE-LABlab(17.84, 45.54, -65.40)
CIE-LCHlch(17.84, 79.69, 304.85°)
OKLaboklab(31.18% -0.0054 -0.1893)
OKLCHoklch(31.18% 0.189 268.4)
XYZxyz(5.3307, 2.4818, 25.7840)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12118E #8D8E11
analogous
#114E8E #12118E #50118E
triadic
#12118E #8E1211 #118E12
tetradic
#12118E #8E114E #8D8E11 #118E50
square
#12118E #8E114E #8D8E11 #118E50
split-complementary
#12118E #8E5011 #4E8E11
monochromatic
#040421 #0B0A57 #12118E #1918C5 #3433E7

Accessibility & contrast

On white

14.03
#12118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#12118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12118E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12118E#FFFFFF#000000##FFFFFF
##12118E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003291
Deuteranopia (green-blind)
#00258C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12118e;
/* rgb */ color: rgb(18, 17, 142);
/* oklch */ color: oklch(31.2% 0.189 268.4);
Tailwind
colors: {
  custom: {
    50: '#6d54b1',
    500: '#12118e',
    950: '#000000',
  },
}
SCSS
$custom: #12118e;
$custom-light: #6d54b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12118e",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 240.48,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31177,
    "c": 0.18935,
    "h": 268.4
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#12118E
secondary
#C1C238
accent
#F533F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12118E

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

Preview Lab → · Contrast checker → · Palette generator →

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