#12012A#12012A

#12012A is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.8% C 0.081 H 297.0°. Best body text is #FFFFFF at 19.75:1 contrast (WCAG AA passes).

Color values

HEX#12012A
RGBrgb(18, 1, 42)
HSLhsl(265, 95%, 8%)
HSVhsv(265, 98%, 16%)
CMYKcmyk(57.1%, 97.6%, 0%, 83.5%)
CIE-LABlab(2.87, 15.42, -22.07)
CIE-LCHlch(2.87, 26.92, 304.93°)
OKLaboklab(15.77% 0.0369 -0.0723)
OKLCHoklch(15.77% 0.081 297)
XYZxyz(0.6781, 0.3175, 2.2156)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12012A #192A01
analogous
#01042A #12012A #26012A
triadic
#12012A #2A1201 #012A12
tetradic
#12012A #2A0104 #192A01 #012A26
square
#12012A #2A0104 #192A01 #012A26
split-complementary
#12012A #2A2601 #042A01
monochromatic
#0D011E #0D011E #12012A #2C0266 #4504A2

Accessibility & contrast

On white

19.75
#12012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#12012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12012A
19.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12012A#FFFFFF#000000##FFFFFF
##12012A1.0019.751.0619.75
#FFFFFF19.751.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2B
Deuteranopia (green-blind)
#000A29
Tritanopia (blue-blind)
#0B0B15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #12012a;
/* rgb */ color: rgb(18, 1, 42);
/* oklch */ color: oklch(15.8% 0.081 297.0);
Tailwind
colors: {
  custom: {
    50: '#504764',
    500: '#12012a',
    950: '#000000',
  },
}
SCSS
$custom: #12012a;
$custom-light: #504764;
$custom-dark: #000000;
JSON
{
  "hex": "#12012a",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 264.878,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.15768,
    "c": 0.08115,
    "h": 297
  },
  "luminance": 0.00317
}

Semantic roles & 50–950 ramp

primary
#12012A
secondary
#4B7016
accent
#FF29A6
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#020005
muted
#787779

Preview Lab

Preview with #12012A

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

Preview Lab → · Contrast checker → · Palette generator →

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