#12072B#12072B

#12072B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.3% C 0.069 H 291.9°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#12072B
RGBrgb(18, 7, 43)
HSLhsl(258, 72%, 10%)
HSVhsv(258, 84%, 17%)
CMYKcmyk(58.1%, 83.7%, 0%, 83.1%)
CIE-LABlab(4.11, 13.48, -20.88)
CIE-LCHlch(4.11, 24.85, 302.85°)
OKLaboklab(17.32% 0.0258 -0.0642)
OKLCHoklch(17.32% 0.069 291.9)
XYZxyz(0.7614, 0.4549, 2.3327)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12072B #202B07
analogous
#070E2B #12072B #24072B
triadic
#12072B #2B1207 #072B12
tetradic
#12072B #2B070E #202B07 #072B24
square
#12072B #2B070E #202B07 #072B24
split-complementary
#12072B #2B2407 #0E2B07
monochromatic
#0B041A #0B041A #12072B #281060 #3E1894

Accessibility & contrast

On white

19.25
#12072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#12072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12072B
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12072B#FFFFFF#000000##FFFFFF
##12072B1.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#0A1017
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12072b;
/* rgb */ color: rgb(18, 7, 43);
/* oklch */ color: oklch(17.3% 0.069 291.9);
Tailwind
colors: {
  custom: {
    50: '#514964',
    500: '#12072b',
    950: '#000000',
  },
}
SCSS
$custom: #12072b;
$custom-light: #514964;
$custom-dark: #000000;
JSON
{
  "hex": "#12072b",
  "rgb": {
    "r": 18,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 258.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17322,
    "c": 0.06916,
    "h": 291.9
  },
  "luminance": 0.00455
}

Semantic roles & 50–950 ramp

primary
#12072B
secondary
#556B23
accent
#EF39B7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #12072B

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

Preview Lab → · Contrast checker → · Palette generator →

#12072B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva