#12072F#12072F

#12072F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.075 H 289.3°. Best body text is #FFFFFF at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#12072F
RGBrgb(18, 7, 47)
HSLhsl(257, 74%, 11%)
HSVhsv(257, 85%, 18%)
CMYKcmyk(61.7%, 85.1%, 0%, 81.6%)
CIE-LABlab(4.39, 15.43, -23.45)
CIE-LCHlch(4.39, 28.07, 303.35°)
OKLaboklab(17.76% 0.0248 -0.071)
OKLCHoklch(17.76% 0.075 289.3)
XYZxyz(0.8384, 0.4858, 2.7384)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12072F #242F07
analogous
#07102F #12072F #26072F
triadic
#12072F #2F1207 #072F12
tetradic
#12072F #2F0710 #242F07 #072F26
square
#12072F #2F0710 #242F07 #072F26
split-complementary
#12072F #2F2607 #102F07
monochromatic
#0A041B #0A041B #12072F #260F64 #3B179A

Accessibility & contrast

On white

19.14
#12072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#12072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12072F
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12072F#FFFFFF#000000##FFFFFF
##12072F1.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#08111A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #12072f;
/* rgb */ color: rgb(18, 7, 47);
/* oklch */ color: oklch(17.8% 0.075 289.3);
Tailwind
colors: {
  custom: {
    50: '#524968',
    500: '#12072f',
    950: '#000000',
  },
}
SCSS
$custom: #12072f;
$custom-light: #524968;
$custom-dark: #000000;
JSON
{
  "hex": "#12072f",
  "rgb": {
    "r": 18,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 256.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17756,
    "c": 0.07522,
    "h": 289.3
  },
  "luminance": 0.00486
}

Semantic roles & 50–950 ramp

primary
#12072F
secondary
#5A6F23
accent
#F137BE
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12072F

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

Preview Lab → · Contrast checker → · Palette generator →

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