#12012C#12012C

#12012C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.084 H 295.4°. Best body text is #FFFFFF at 19.69:1 contrast (WCAG AA passes).

Color values

HEX#12012C
RGBrgb(18, 1, 44)
HSLhsl(264, 96%, 9%)
HSVhsv(264, 98%, 17%)
CMYKcmyk(59.1%, 97.7%, 0%, 82.7%)
CIE-LABlab(3.00, 16.35, -23.39)
CIE-LCHlch(3.00, 28.54, 304.96°)
OKLaboklab(16.02% 0.0358 -0.0755)
OKLCHoklch(16.02% 0.084 295.4)
XYZxyz(0.7148, 0.3321, 2.4088)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12012C #1B2C01
analogous
#01062C #12012C #28012C
triadic
#12012C #2C1201 #012C12
tetradic
#12012C #2C0106 #1B2C01 #012C28
square
#12012C #2C0106 #1B2C01 #012C28
split-complementary
#12012C #2C2801 #062C01
monochromatic
#0C011E #0C011E #12012C #2A0268 #4304A4

Accessibility & contrast

On white

19.69
#12012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12012C
19.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12012C#FFFFFF#000000##FFFFFF
##12012C1.0019.691.0719.69
#FFFFFF19.691.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2D
Deuteranopia (green-blind)
#000A2B
Tritanopia (blue-blind)
#0A0C16
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #12012c;
/* rgb */ color: rgb(18, 1, 44);
/* oklch */ color: oklch(16.0% 0.084 295.4);
Tailwind
colors: {
  custom: {
    50: '#514665',
    500: '#12012c',
    950: '#000000',
  },
}
SCSS
$custom: #12012c;
$custom-light: #514665;
$custom-dark: #000000;
JSON
{
  "hex": "#12012c",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 263.721,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16021,
    "c": 0.08355,
    "h": 295.4
  },
  "luminance": 0.00332
}

Semantic roles & 50–950 ramp

primary
#12012C
secondary
#4E7217
accent
#FF29AA
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #12012C

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

Preview Lab → · Contrast checker → · Palette generator →

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