#12082B#12082B

#12082B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.5% C 0.067 H 291.1°. Best body text is #FFFFFF at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#12082B
RGBrgb(18, 8, 43)
HSLhsl(257, 69%, 10%)
HSVhsv(257, 81%, 17%)
CMYKcmyk(58.1%, 81.4%, 0%, 83.1%)
CIE-LABlab(4.31, 13.07, -20.57)
CIE-LCHlch(4.31, 24.37, 302.44°)
OKLaboklab(17.54% 0.0242 -0.0627)
OKLCHoklch(17.54% 0.067 291.1)
XYZxyz(0.7722, 0.4767, 2.3363)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12082B #212B08
analogous
#080F2B #12082B #24082B
triadic
#12082B #2B1208 #082B12
tetradic
#12082B #2B080F #212B08 #082B24
square
#12082B #2B080F #212B08 #082B24
split-complementary
#12082B #2B2408 #0F2B08
monochromatic
#0B051A #0B051A #12082B #28125F #3D1B92

Accessibility & contrast

On white

19.17
#12082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#12082B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12082B
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12082B#FFFFFF#000000##FFFFFF
##12082B1.0019.171.1019.17
#FFFFFF19.171.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#0A1018
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #12082b;
/* rgb */ color: rgb(18, 8, 43);
/* oklch */ color: oklch(17.5% 0.067 291.1);
Tailwind
colors: {
  custom: {
    50: '#514a64',
    500: '#12082b',
    950: '#000000',
  },
}
SCSS
$custom: #12082b;
$custom-light: #514a64;
$custom-dark: #000000;
JSON
{
  "hex": "#12082b",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 257.143,
    "s": 68.627,
    "l": 10
  },
  "oklch": {
    "l": 0.17538,
    "c": 0.06726,
    "h": 291.1
  },
  "luminance": 0.00477
}

Semantic roles & 50–950 ramp

primary
#12082B
secondary
#566A25
accent
#EB3CB9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #12082B

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

Preview Lab → · Contrast checker → · Palette generator →

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