#12042D#12042D

#12042D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.078 H 292.6°. Best body text is #FFFFFF at 19.43:1 contrast (WCAG AA passes).

Color values

HEX#12042D
RGBrgb(18, 4, 45)
HSLhsl(260, 84%, 10%)
HSVhsv(260, 91%, 18%)
CMYKcmyk(60%, 91.1%, 0%, 82.4%)
CIE-LABlab(3.66, 15.63, -23.10)
CIE-LCHlch(3.66, 27.89, 304.08°)
OKLaboklab(16.87% 0.03 -0.0721)
OKLCHoklch(16.87% 0.078 292.6)
XYZxyz(0.7664, 0.4049, 2.5199)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12042D #1F2D04
analogous
#040B2D #12042D #27042D
triadic
#12042D #2D1204 #042D12
tetradic
#12042D #2D040B #1F2D04 #042D27
square
#12042D #2D040B #1F2D04 #042D27
split-complementary
#12042D #2D2704 #0B2D04
monochromatic
#0B021C #0B021C #12042D #280965 #3F0E9D

Accessibility & contrast

On white

19.43
#12042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#12042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12042D
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12042D#FFFFFF#000000##FFFFFF
##12042D1.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#090E17
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #12042d;
/* rgb */ color: rgb(18, 4, 45);
/* oklch */ color: oklch(16.9% 0.078 292.6);
Tailwind
colors: {
  custom: {
    50: '#514866',
    500: '#12042d',
    950: '#000000',
  },
}
SCSS
$custom: #12042d;
$custom-light: #514866;
$custom-dark: #000000;
JSON
{
  "hex": "#12042d",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 260.488,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16871,
    "c": 0.07809,
    "h": 292.6
  },
  "luminance": 0.00405
}

Semantic roles & 50–950 ramp

primary
#12042D
secondary
#53701D
accent
#FA2EB4
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12042D

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

Preview Lab → · Contrast checker → · Palette generator →

#12042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva