#12062C#12062C

#12062C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.073 H 291.9°. Best body text is #FFFFFF at 19.30:1 contrast (WCAG AA passes).

Color values

HEX#12062C
RGBrgb(18, 6, 44)
HSLhsl(259, 76%, 10%)
HSVhsv(259, 86%, 17%)
CMYKcmyk(59.1%, 86.4%, 0%, 82.7%)
CIE-LABlab(3.98, 14.35, -21.84)
CIE-LCHlch(3.98, 26.13, 303.31°)
OKLaboklab(17.21% 0.0271 -0.0674)
OKLCHoklch(17.21% 0.073 291.9)
XYZxyz(0.7691, 0.4407, 2.4269)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12062C #202C06
analogous
#060D2C #12062C #25062C
triadic
#12062C #2C1206 #062C12
tetradic
#12062C #2C060D #202C06 #062C25
square
#12062C #2C060D #202C06 #062C25
split-complementary
#12062C #2C2506 #0D2C06
monochromatic
#0B041B #0B041B #12062C #280D62 #3E1598

Accessibility & contrast

On white

19.30
#12062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12062C
19.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12062C#FFFFFF#000000##FFFFFF
##12062C1.0019.301.0919.30
#FFFFFF19.301.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#000D2B
Tritanopia (blue-blind)
#0A0F18
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12062c;
/* rgb */ color: rgb(18, 6, 44);
/* oklch */ color: oklch(17.2% 0.073 291.9);
Tailwind
colors: {
  custom: {
    50: '#514965',
    500: '#12062c',
    950: '#000000',
  },
}
SCSS
$custom: #12062c;
$custom-light: #514965;
$custom-dark: #000000;
JSON
{
  "hex": "#12062c",
  "rgb": {
    "r": 18,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 258.947,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.1721,
    "c": 0.07262,
    "h": 291.9
  },
  "luminance": 0.00441
}

Semantic roles & 50–950 ramp

primary
#12062C
secondary
#556D21
accent
#F335B7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #12062C

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

Preview Lab → · Contrast checker → · Palette generator →

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