#12062F#12062F

#12062F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.5% C 0.077 H 289.9°. Best body text is #FFFFFF at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#12062F
RGBrgb(18, 6, 47)
HSLhsl(258, 77%, 10%)
HSVhsv(258, 87%, 18%)
CMYKcmyk(61.7%, 87.2%, 0%, 81.6%)
CIE-LABlab(4.19, 15.83, -23.76)
CIE-LCHlch(4.19, 28.55, 303.68°)
OKLaboklab(17.54% 0.0262 -0.0724)
OKLCHoklch(17.54% 0.077 289.9)
XYZxyz(0.8275, 0.4640, 2.7347)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12062F #232F06
analogous
#060E2F #12062F #26062F
triadic
#12062F #2F1206 #062F12
tetradic
#12062F #2F060E #232F06 #062F26
square
#12062F #2F060E #232F06 #062F26
split-complementary
#12062F #2F2606 #0E2F06
monochromatic
#0A031B #0A031B #12062F #270D65 #3C149C

Accessibility & contrast

On white

19.22
#12062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12062F
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12062F#FFFFFF#000000##FFFFFF
##12062F1.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#081119
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #12062f;
/* rgb */ color: rgb(18, 6, 47);
/* oklch */ color: oklch(17.5% 0.077 289.9);
Tailwind
colors: {
  custom: {
    50: '#524968',
    500: '#12062f',
    950: '#000000',
  },
}
SCSS
$custom: #12062f;
$custom-light: #524968;
$custom-dark: #000000;
JSON
{
  "hex": "#12062f",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 257.561,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17545,
    "c": 0.07702,
    "h": 289.9
  },
  "luminance": 0.00464
}

Semantic roles & 50–950 ramp

primary
#12062F
secondary
#597021
accent
#F434BC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12062F

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

Preview Lab → · Contrast checker → · Palette generator →

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