#12062A#12062A

#12062A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.0% C 0.070 H 293.3°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#12062A
RGBrgb(18, 6, 42)
HSLhsl(260, 75%, 9%)
HSVhsv(260, 86%, 16%)
CMYKcmyk(57.1%, 85.7%, 0%, 83.5%)
CIE-LABlab(3.85, 13.42, -20.53)
CIE-LCHlch(3.85, 24.52, 303.16°)
OKLaboklab(16.99% 0.0276 -0.064)
OKLCHoklch(16.99% 0.07 293.3)
XYZxyz(0.7324, 0.4260, 2.2337)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12062A #1E2A06
analogous
#060C2A #12062A #24062A
triadic
#12062A #2A1206 #062A12
tetradic
#12062A #2A060C #1E2A06 #062A24
square
#12062A #2A060C #1E2A06 #062A24
split-complementary
#12062A #2A2406 #0C2A06
monochromatic
#0B041B #0B041B #12062A #290E60 #401595

Accessibility & contrast

On white

19.35
#12062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12062A
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12062A#FFFFFF#000000##FFFFFF
##12062A1.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000D29
Tritanopia (blue-blind)
#0B0F17
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12062a;
/* rgb */ color: rgb(18, 6, 42);
/* oklch */ color: oklch(17.0% 0.070 293.3);
Tailwind
colors: {
  custom: {
    50: '#514964',
    500: '#12062a',
    950: '#000000',
  },
}
SCSS
$custom: #12062a;
$custom-light: #514964;
$custom-dark: #000000;
JSON
{
  "hex": "#12062a",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 260,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16992,
    "c": 0.06964,
    "h": 293.3
  },
  "luminance": 0.00426
}

Semantic roles & 50–950 ramp

primary
#12062A
secondary
#526B21
accent
#F236B3
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #12062A

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

Preview Lab → · Contrast checker → · Palette generator →

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