#12082F#12082F

#12082F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.073 H 288.6°. Best body text is #FFFFFF at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#12082F
RGBrgb(18, 8, 47)
HSLhsl(255, 71%, 11%)
HSVhsv(255, 83%, 18%)
CMYKcmyk(61.7%, 83%, 0%, 81.6%)
CIE-LABlab(4.58, 15.03, -23.13)
CIE-LCHlch(4.58, 27.58, 303.01°)
OKLaboklab(17.96% 0.0235 -0.0696)
OKLCHoklch(17.96% 0.073 288.6)
XYZxyz(0.8492, 0.5075, 2.7420)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12082F #252F08
analogous
#08112F #12082F #25082F
triadic
#12082F #2F1208 #082F12
tetradic
#12082F #2F0811 #252F08 #082F25
square
#12082F #2F0811 #252F08 #082F25
split-complementary
#12082F #2F2508 #112F08
monochromatic
#0A041A #0A041A #12082F #261163 #3A1A98

Accessibility & contrast

On white

19.06
#12082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12082F
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12082F#FFFFFF#000000##FFFFFF
##12082F1.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#000F2E
Tritanopia (blue-blind)
#08121A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #12082f;
/* rgb */ color: rgb(18, 8, 47);
/* oklch */ color: oklch(18.0% 0.073 288.6);
Tailwind
colors: {
  custom: {
    50: '#524a68',
    500: '#12082f',
    950: '#000000',
  },
}
SCSS
$custom: #12082f;
$custom-light: #524a68;
$custom-dark: #000000;
JSON
{
  "hex": "#12082f",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 255.385,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17962,
    "c": 0.07347,
    "h": 288.6
  },
  "luminance": 0.00508
}

Semantic roles & 50–950 ramp

primary
#12082F
secondary
#5B6E25
accent
#EE3AC0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #12082F

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

Preview Lab → · Contrast checker → · Palette generator →

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