#12012D#12012D

#12012D is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.1% C 0.085 H 294.6°. Best body text is #FFFFFF at 19.66:1 contrast (WCAG AA passes).

Color values

HEX#12012D
RGBrgb(18, 1, 45)
HSLhsl(263, 96%, 9%)
HSVhsv(263, 98%, 18%)
CMYKcmyk(60%, 97.8%, 0%, 82.4%)
CIE-LABlab(3.07, 16.83, -24.04)
CIE-LCHlch(3.07, 29.34, 305.00°)
OKLaboklab(16.15% 0.0352 -0.0771)
OKLCHoklch(16.15% 0.085 294.6)
XYZxyz(0.7338, 0.3397, 2.5090)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12012D #1C2D01
analogous
#01062D #12012D #28012D
triadic
#12012D #2D1201 #012D12
tetradic
#12012D #2D0106 #1C2D01 #012D28
square
#12012D #2D0106 #1C2D01 #012D28
split-complementary
#12012D #2D2801 #062D01
monochromatic
#0C011E #0C011E #12012D #2A0269 #4204A5

Accessibility & contrast

On white

19.66
#12012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#12012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12012D
19.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12012D#FFFFFF#000000##FFFFFF
##12012D1.0019.661.0719.66
#FFFFFF19.661.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#000A2C
Tritanopia (blue-blind)
#090C16
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #12012d;
/* rgb */ color: rgb(18, 1, 45);
/* oklch */ color: oklch(16.1% 0.085 294.6);
Tailwind
colors: {
  custom: {
    50: '#514666',
    500: '#12012d',
    950: '#000000',
  },
}
SCSS
$custom: #12012d;
$custom-light: #514666;
$custom-dark: #000000;
JSON
{
  "hex": "#12012d",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 263.182,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.16149,
    "c": 0.08475,
    "h": 294.6
  },
  "luminance": 0.0034
}

Semantic roles & 50–950 ramp

primary
#12012D
secondary
#4F7317
accent
#FF29AC
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12012D

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

Preview Lab → · Contrast checker → · Palette generator →

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