#12073E#12073E

#12073E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.5% C 0.097 H 282.0°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#12073E
RGBrgb(18, 7, 62)
HSLhsl(252, 80%, 14%)
HSVhsv(252, 89%, 24%)
CMYKcmyk(71%, 88.7%, 0%, 75.7%)
CIE-LABlab(5.68, 22.83, -32.36)
CIE-LCHlch(5.68, 39.60, 305.20°)
OKLaboklab(19.53% 0.0202 -0.0947)
OKLCHoklch(19.53% 0.097 282)
XYZxyz(1.1947, 0.6283, 4.6148)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12073E #333E07
analogous
#07173E #12073E #2D073E
triadic
#12073E #3E1207 #073E12
tetradic
#12073E #3E0717 #333E07 #073E2D
square
#12073E #3E0717 #333E07 #073E2D
split-complementary
#12073E #3E2D07 #173E07
monochromatic
#08031B #08031B #12073E #220D75 #3213AC

Accessibility & contrast

On white

18.66
#12073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#12073E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12073E
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12073E#FFFFFF#000000##FFFFFF
##12073E1.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001440
Deuteranopia (green-blind)
#00113D
Tritanopia (blue-blind)
#001722
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #12073e;
/* rgb */ color: rgb(18, 7, 62);
/* oklch */ color: oklch(19.5% 0.097 282.0);
Tailwind
colors: {
  custom: {
    50: '#574974',
    500: '#12073e',
    950: '#000000',
  },
}
SCSS
$custom: #12073e;
$custom-light: #574974;
$custom-dark: #000000;
JSON
{
  "hex": "#12073e",
  "rgb": {
    "r": 18,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 252,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19526,
    "c": 0.09682,
    "h": 282
  },
  "luminance": 0.00628
}

Semantic roles & 50–950 ramp

primary
#12073E
secondary
#6B7D24
accent
#F632CF
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #12073E

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

Preview Lab → · Contrast checker → · Palette generator →

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