#12012F#12012F

#12012F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.087 H 293.0°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#12012F
RGBrgb(18, 1, 47)
HSLhsl(262, 96%, 9%)
HSVhsv(262, 98%, 18%)
CMYKcmyk(61.7%, 97.9%, 0%, 81.6%)
CIE-LABlab(3.21, 17.84, -25.32)
CIE-LCHlch(3.21, 30.97, 305.16°)
OKLaboklab(16.41% 0.0341 -0.0802)
OKLCHoklch(16.41% 0.087 293)
XYZxyz(0.7733, 0.3555, 2.7167)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12012F #1E2F01
analogous
#01072F #12012F #29012F
triadic
#12012F #2F1201 #012F12
tetradic
#12012F #2F0107 #1E2F01 #012F29
square
#12012F #2F0107 #1E2F01 #012F29
split-complementary
#12012F #2F2901 #072F01
monochromatic
#0B011E #0B011E #12012F #29026B #4004A7

Accessibility & contrast

On white

19.60
#12012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12012F
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12012F#FFFFFF#000000##FFFFFF
##12012F1.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#080D18
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #12012f;
/* rgb */ color: rgb(18, 1, 47);
/* oklch */ color: oklch(16.4% 0.087 293.0);
Tailwind
colors: {
  custom: {
    50: '#524668',
    500: '#12012f',
    950: '#000000',
  },
}
SCSS
$custom: #12012f;
$custom-light: #524668;
$custom-dark: #000000;
JSON
{
  "hex": "#12012f",
  "rgb": {
    "r": 18,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 262.174,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16408,
    "c": 0.08716,
    "h": 293
  },
  "luminance": 0.00356
}

Semantic roles & 50–950 ramp

primary
#12012F
secondary
#527517
accent
#FF29B0
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12012F

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

Preview Lab → · Contrast checker → · Palette generator →

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