#12012B#12012B

#12012B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.9% C 0.082 H 296.2°. Best body text is #FFFFFF at 19.72:1 contrast (WCAG AA passes).

Color values

HEX#12012B
RGBrgb(18, 1, 43)
HSLhsl(264, 95%, 9%)
HSVhsv(264, 98%, 17%)
CMYKcmyk(58.1%, 97.7%, 0%, 83.1%)
CIE-LABlab(2.93, 15.88, -22.73)
CIE-LCHlch(2.93, 27.73, 304.93°)
OKLaboklab(15.89% 0.0363 -0.0739)
OKLCHoklch(15.89% 0.082 296.2)
XYZxyz(0.6962, 0.3247, 2.3110)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12012B #1A2B01
analogous
#01052B #12012B #27012B
triadic
#12012B #2B1201 #012B12
tetradic
#12012B #2B0105 #1A2B01 #012B27
square
#12012B #2B0105 #1A2B01 #012B27
split-complementary
#12012B #2B2701 #052B01
monochromatic
#0D011E #0D011E #12012B #2B0267 #4404A3

Accessibility & contrast

On white

19.72
#12012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12012B
19.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12012B#FFFFFF#000000##FFFFFF
##12012B1.0019.721.0719.72
#FFFFFF19.721.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2C
Deuteranopia (green-blind)
#000A2A
Tritanopia (blue-blind)
#0B0B15
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #12012b;
/* rgb */ color: rgb(18, 1, 43);
/* oklch */ color: oklch(15.9% 0.082 296.2);
Tailwind
colors: {
  custom: {
    50: '#514764',
    500: '#12012b',
    950: '#000000',
  },
}
SCSS
$custom: #12012b;
$custom-light: #514764;
$custom-dark: #000000;
JSON
{
  "hex": "#12012b",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 264.286,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15894,
    "c": 0.08235,
    "h": 296.2
  },
  "luminance": 0.00325
}

Semantic roles & 50–950 ramp

primary
#12012B
secondary
#4D7117
accent
#FF29A8
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #12012B

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

Preview Lab → · Contrast checker → · Palette generator →

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