#12114C#12114C

#12114C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.105 H 275.0°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#12114C
RGBrgb(18, 17, 76)
HSLhsl(241, 63%, 18%)
HSVhsv(241, 78%, 30%)
CMYKcmyk(76.3%, 77.6%, 0%, 70.2%)
CIE-LABlab(9.41, 22.60, -36.11)
CIE-LCHlch(9.41, 42.60, 302.05°)
OKLaboklab(22.86% 0.0091 -0.1043)
OKLCHoklch(22.86% 0.105 275)
XYZxyz(1.7540, 1.0511, 6.9465)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12114C #4B4C11
analogous
#112D4C #12114C #2F114C
triadic
#12114C #4C1211 #114C12
tetradic
#12114C #4C112D #4B4C11 #114C2F
square
#12114C #4C112D #4B4C11 #114C2F
split-complementary
#12114C #4C2F11 #2D4C11
monochromatic
#060619 #06061A #12114C #1E1C7E #2A27B0

Accessibility & contrast

On white

17.35
#12114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#12114C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12114C
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12114C#FFFFFF#000000##FFFFFF
##12114C1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00184B
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12114c;
/* rgb */ color: rgb(18, 17, 76);
/* oklch */ color: oklch(22.9% 0.105 275.0);
Tailwind
colors: {
  custom: {
    50: '#5a4f7f',
    500: '#12114c',
    950: '#000000',
  },
}
SCSS
$custom: #12114c;
$custom-light: #5a4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#12114c",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 241.017,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22858,
    "c": 0.10474,
    "h": 275
  },
  "luminance": 0.01051
}

Semantic roles & 50–950 ramp

primary
#12114C
secondary
#848533
accent
#E641E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12114C

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

Preview Lab → · Contrast checker → · Palette generator →

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