#12052D#12052D

#12052D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.076 H 291.9°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#12052D
RGBrgb(18, 5, 45)
HSLhsl(260, 80%, 10%)
HSVhsv(260, 89%, 18%)
CMYKcmyk(60%, 88.9%, 0%, 82.4%)
CIE-LABlab(3.85, 15.23, -22.79)
CIE-LCHlch(3.85, 27.41, 303.75°)
OKLaboklab(17.1% 0.0284 -0.0706)
OKLCHoklch(17.1% 0.076 291.9)
XYZxyz(0.7772, 0.4266, 2.5235)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12052D #202D05
analogous
#050C2D #12052D #26052D
triadic
#12052D #2D1205 #052D12
tetradic
#12052D #2D050C #202D05 #052D26
square
#12052D #2D050C #202D05 #052D26
split-complementary
#12052D #2D2605 #0C2D05
monochromatic
#0B031C #0B031C #12052D #280B64 #3E119B

Accessibility & contrast

On white

19.35
#12052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#12052D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12052D
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12052D#FFFFFF#000000##FFFFFF
##12052D1.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000D2C
Tritanopia (blue-blind)
#090F18
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12052d;
/* rgb */ color: rgb(18, 5, 45);
/* oklch */ color: oklch(17.1% 0.076 291.9);
Tailwind
colors: {
  custom: {
    50: '#514866',
    500: '#12052d',
    950: '#000000',
  },
}
SCSS
$custom: #12052d;
$custom-light: #514866;
$custom-dark: #000000;
JSON
{
  "hex": "#12052d",
  "rgb": {
    "r": 18,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 259.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17099,
    "c": 0.07606,
    "h": 291.9
  },
  "luminance": 0.00427
}

Semantic roles & 50–950 ramp

primary
#12052D
secondary
#556F1F
accent
#F631B6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12052D

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

Preview Lab → · Contrast checker → · Palette generator →

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