#12062B#12062B

#12062B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.071 H 292.6°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#12062B
RGBrgb(18, 6, 43)
HSLhsl(259, 76%, 10%)
HSVhsv(259, 86%, 17%)
CMYKcmyk(58.1%, 86%, 0%, 83.1%)
CIE-LABlab(3.91, 13.88, -21.19)
CIE-LCHlch(3.91, 25.33, 303.23°)
OKLaboklab(17.1% 0.0273 -0.0657)
OKLCHoklch(17.1% 0.071 292.6)
XYZxyz(0.7505, 0.4332, 2.3291)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12062B #1F2B06
analogous
#060D2B #12062B #25062B
triadic
#12062B #2B1206 #062B12
tetradic
#12062B #2B060D #1F2B06 #062B25
square
#12062B #2B060D #1F2B06 #062B25
split-complementary
#12062B #2B2506 #0D2B06
monochromatic
#0B041B #0B041B #12062B #280D61 #3F1596

Accessibility & contrast

On white

19.33
#12062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12062B
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12062B#FFFFFF#000000##FFFFFF
##12062B1.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000D2A
Tritanopia (blue-blind)
#0A0F17
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12062b;
/* rgb */ color: rgb(18, 6, 43);
/* oklch */ color: oklch(17.1% 0.071 292.6);
Tailwind
colors: {
  custom: {
    50: '#514964',
    500: '#12062b',
    950: '#000000',
  },
}
SCSS
$custom: #12062b;
$custom-light: #514964;
$custom-dark: #000000;
JSON
{
  "hex": "#12062b",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 259.459,
    "s": 75.51,
    "l": 9.608
  },
  "oklch": {
    "l": 0.171,
    "c": 0.07114,
    "h": 292.6
  },
  "luminance": 0.00433
}

Semantic roles & 50–950 ramp

primary
#12062B
secondary
#536C21
accent
#F236B5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #12062B

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

Preview Lab → · Contrast checker → · Palette generator →

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