#12042F#12042F

#12042F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.081 H 291.2°. Best body text is #FFFFFF at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#12042F
RGBrgb(18, 4, 47)
HSLhsl(260, 84%, 10%)
HSVhsv(260, 91%, 18%)
CMYKcmyk(61.7%, 91.5%, 0%, 81.6%)
CIE-LABlab(3.80, 16.63, -24.38)
CIE-LCHlch(3.80, 29.52, 304.30°)
OKLaboklab(17.11% 0.0292 -0.0754)
OKLCHoklch(17.11% 0.081 291.2)
XYZxyz(0.8058, 0.4206, 2.7275)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12042F #212F04
analogous
#040B2F #12042F #28042F
triadic
#12042F #2F1204 #042F12
tetradic
#12042F #2F040B #212F04 #042F28
square
#12042F #2F040B #212F04 #042F28
split-complementary
#12042F #2F2804 #0B2F04
monochromatic
#0B021C #0B021C #12042F #280967 #3D0EA0

Accessibility & contrast

On white

19.37
#12042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12042F
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12042F#FFFFFF#000000##FFFFFF
##12042F1.0019.371.0819.37
#FFFFFF19.371.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#080F19
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12042f;
/* rgb */ color: rgb(18, 4, 47);
/* oklch */ color: oklch(17.1% 0.081 291.2);
Tailwind
colors: {
  custom: {
    50: '#524868',
    500: '#12042f',
    950: '#000000',
  },
}
SCSS
$custom: #12042f;
$custom-light: #524868;
$custom-dark: #000000;
JSON
{
  "hex": "#12042f",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 259.535,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.17108,
    "c": 0.08084,
    "h": 291.2
  },
  "luminance": 0.00421
}

Semantic roles & 50–950 ramp

primary
#12042F
secondary
#56721D
accent
#FB2DB8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12042F

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

Preview Lab → · Contrast checker → · Palette generator →

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