#12082A#12082A

#12082A is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.4% C 0.066 H 291.8°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#12082A
RGBrgb(18, 8, 42)
HSLhsl(258, 68%, 10%)
HSVhsv(258, 81%, 16%)
CMYKcmyk(57.1%, 81%, 0%, 83.5%)
CIE-LABlab(4.24, 12.61, -19.91)
CIE-LCHlch(4.24, 23.57, 302.36°)
OKLaboklab(17.44% 0.0244 -0.061)
OKLCHoklch(17.44% 0.066 291.8)
XYZxyz(0.7541, 0.4694, 2.2409)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12082A #202A08
analogous
#080F2A #12082A #23082A
triadic
#12082A #2A1208 #082A12
tetradic
#12082A #2A080F #202A08 #082A23
square
#12082A #2A080F #202A08 #082A23
split-complementary
#12082A #2A2308 #0F2A08
monochromatic
#0B051A #0B051A #12082A #28125D #3E1C91

Accessibility & contrast

On white

19.20
#12082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#12082A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12082A
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12082A#FFFFFF#000000##FFFFFF
##12082A1.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2B
Deuteranopia (green-blind)
#000E29
Tritanopia (blue-blind)
#0B1017
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #12082a;
/* rgb */ color: rgb(18, 8, 42);
/* oklch */ color: oklch(17.4% 0.066 291.8);
Tailwind
colors: {
  custom: {
    50: '#514a64',
    500: '#12082a',
    950: '#000000',
  },
}
SCSS
$custom: #12082a;
$custom-light: #514a64;
$custom-dark: #000000;
JSON
{
  "hex": "#12082a",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 257.647,
    "s": 68,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17435,
    "c": 0.06569,
    "h": 291.8
  },
  "luminance": 0.00469
}

Semantic roles & 50–950 ramp

primary
#12082A
secondary
#556925
accent
#EB3DB8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #12082A

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

Preview Lab → · Contrast checker → · Palette generator →

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