#12072D#12072D

#12072D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.5% C 0.072 H 290.5°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#12072D
RGBrgb(18, 7, 45)
HSLhsl(257, 73%, 10%)
HSVhsv(257, 84%, 18%)
CMYKcmyk(60%, 84.4%, 0%, 82.4%)
CIE-LABlab(4.25, 14.43, -22.17)
CIE-LCHlch(4.25, 26.45, 303.06°)
OKLaboklab(17.54% 0.0253 -0.0676)
OKLCHoklch(17.54% 0.072 290.5)
XYZxyz(0.7990, 0.4700, 2.5307)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12072D #222D07
analogous
#070F2D #12072D #25072D
triadic
#12072D #2D1207 #072D12
tetradic
#12072D #2D070F #222D07 #072D25
square
#12072D #2D070F #222D07 #072D25
split-complementary
#12072D #2D2507 #0F2D07
monochromatic
#0B041A #0B041A #12072D #270F62 #3C1797

Accessibility & contrast

On white

19.20
#12072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12072D
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12072D#FFFFFF#000000##FFFFFF
##12072D1.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#091019
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #12072d;
/* rgb */ color: rgb(18, 7, 45);
/* oklch */ color: oklch(17.5% 0.072 290.5);
Tailwind
colors: {
  custom: {
    50: '#514966',
    500: '#12072d',
    950: '#000000',
  },
}
SCSS
$custom: #12072d;
$custom-light: #514966;
$custom-dark: #000000;
JSON
{
  "hex": "#12072d",
  "rgb": {
    "r": 18,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 257.368,
    "s": 73.077,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17536,
    "c": 0.0722,
    "h": 290.5
  },
  "luminance": 0.0047
}

Semantic roles & 50–950 ramp

primary
#12072D
secondary
#576D23
accent
#F038BB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020106
muted
#78777A

Preview Lab

Preview with #12072D

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

Preview Lab → · Contrast checker → · Palette generator →

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