#08012A#08012A

#08012A is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.4% C 0.082 H 281.2°. Best body text is #FFFFFF at 20.04:1 contrast (WCAG AA passes).

Color values

HEX#08012A
RGBrgb(8, 1, 42)
HSLhsl(250, 95%, 8%)
HSVhsv(250, 98%, 16%)
CMYKcmyk(81%, 97.6%, 0%, 83.5%)
CIE-LABlab(2.17, 12.30, -23.21)
CIE-LCHlch(2.17, 26.27, 297.91°)
OKLaboklab(14.4% 0.0158 -0.08)
OKLCHoklch(14.4% 0.082 281.2)
XYZxyz(0.5288, 0.2405, 2.2086)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08012A #232A01
analogous
#010E2A #08012A #1C012A
triadic
#08012A #2A0801 #012A08
tetradic
#08012A #2A010E #232A01 #012A1C
square
#08012A #2A010E #232A01 #012A1C
split-complementary
#08012A #2A1C01 #0E2A01
monochromatic
#06011E #06011E #08012A #130266 #1F04A2

Accessibility & contrast

On white

20.04
#08012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#08012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08012A
20.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08012A#FFFFFF#000000##FFFFFF
##08012A1.0020.041.0520.04
#FFFFFF20.041.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092B
Deuteranopia (green-blind)
#000729
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #08012a;
/* rgb */ color: rgb(8, 1, 42);
/* oklch */ color: oklch(14.4% 0.082 281.2);
Tailwind
colors: {
  custom: {
    50: '#4b4764',
    500: '#08012a',
    950: '#000000',
  },
}
SCSS
$custom: #08012a;
$custom-light: #4b4764;
$custom-dark: #000000;
JSON
{
  "hex": "#08012a",
  "rgb": {
    "r": 8,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 250.244,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.14404,
    "c": 0.08159,
    "h": 281.2
  },
  "luminance": 0.0024
}

Semantic roles & 50–950 ramp

primary
#08012A
secondary
#617016
accent
#FF29DA
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #08012A

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

Preview Lab → · Contrast checker → · Palette generator →

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