#12112E#12112E

#12112E is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.8% C 0.056 H 281.5°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#12112E
RGBrgb(18, 17, 46)
HSLhsl(242, 46%, 12%)
HSVhsv(242, 63%, 18%)
CMYKcmyk(60.9%, 63%, 0%, 82%)
CIE-LABlab(6.56, 10.18, -19.24)
CIE-LCHlch(6.56, 21.76, 297.88°)
OKLaboklab(19.79% 0.0112 -0.0553)
OKLCHoklch(19.79% 0.056 281.5)
XYZxyz(0.9429, 0.7267, 2.6748)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12112E #2D2E11
analogous
#111F2E #12112E #21112E
triadic
#12112E #2E1211 #112E12
tetradic
#12112E #2E111F #2D2E11 #112E21
square
#12112E #2E111F #2D2E11 #112E21
split-complementary
#12112E #2E2111 #1F2E11
monochromatic
#090816 #090816 #12112E #23225B #353287

Accessibility & contrast

On white

18.33
#12112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#12112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12112E
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12112E#FFFFFF#000000##FFFFFF
##12112E1.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04162F
Deuteranopia (green-blind)
#03142D
Tritanopia (blue-blind)
#08171D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #12112e;
/* rgb */ color: rgb(18, 17, 46);
/* oklch */ color: oklch(19.8% 0.056 281.5);
Tailwind
colors: {
  custom: {
    50: '#524f67',
    500: '#12112e',
    950: '#000000',
  },
}
SCSS
$custom: #12112e;
$custom-light: #524f67;
$custom-dark: #000000;
JSON
{
  "hex": "#12112e",
  "rgb": {
    "r": 18,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 242.069,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19792,
    "c": 0.05645,
    "h": 281.5
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#12112E
secondary
#656634
accent
#D652D1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #12112E

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

Preview Lab → · Contrast checker → · Palette generator →

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