#12062D#12062D

#12062D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.074 H 291.2°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#12062D
RGBrgb(18, 6, 45)
HSLhsl(258, 76%, 10%)
HSVhsv(258, 87%, 18%)
CMYKcmyk(60%, 86.7%, 0%, 82.4%)
CIE-LABlab(4.05, 14.83, -22.48)
CIE-LCHlch(4.05, 26.93, 303.41°)
OKLaboklab(17.32% 0.0268 -0.0691)
OKLCHoklch(17.32% 0.074 291.2)
XYZxyz(0.7881, 0.4483, 2.5271)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12062D #212D06
analogous
#060D2D #12062D #26062D
triadic
#12062D #2D1206 #062D12
tetradic
#12062D #2D060D #212D06 #062D26
square
#12062D #2D060D #212D06 #062D26
split-complementary
#12062D #2D2606 #0D2D06
monochromatic
#0B041B #0B041B #12062D #280D63 #3D1499

Accessibility & contrast

On white

19.27
#12062D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12062D
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12062D#FFFFFF#000000##FFFFFF
##12062D1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#000D2C
Tritanopia (blue-blind)
#091018
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12062d;
/* rgb */ color: rgb(18, 6, 45);
/* oklch */ color: oklch(17.3% 0.074 291.2);
Tailwind
colors: {
  custom: {
    50: '#514966',
    500: '#12062d',
    950: '#000000',
  },
}
SCSS
$custom: #12062d;
$custom-light: #514966;
$custom-dark: #000000;
JSON
{
  "hex": "#12062d",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 45
  },
  "hsl": {
    "h": 258.462,
    "s": 76.471,
    "l": 10
  },
  "oklch": {
    "l": 0.1732,
    "c": 0.07409,
    "h": 291.2
  },
  "luminance": 0.00448
}

Semantic roles & 50–950 ramp

primary
#12062D
secondary
#566E21
accent
#F335B8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12062D

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

Preview Lab → · Contrast checker → · Palette generator →

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