#12052F#12052F

#12052F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.079 H 290.6°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#12052F
RGBrgb(18, 5, 47)
HSLhsl(259, 81%, 10%)
HSVhsv(259, 89%, 18%)
CMYKcmyk(61.7%, 89.4%, 0%, 81.6%)
CIE-LABlab(4.00, 16.23, -24.07)
CIE-LCHlch(4.00, 29.03, 304.00°)
OKLaboklab(17.33% 0.0277 -0.0739)
OKLCHoklch(17.33% 0.079 290.6)
XYZxyz(0.8167, 0.4423, 2.7311)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12052F #222F05
analogous
#050D2F #12052F #27052F
triadic
#12052F #2F1205 #052F12
tetradic
#12052F #2F050D #222F05 #052F27
square
#12052F #2F050D #222F05 #052F27
split-complementary
#12052F #2F2705 #0D2F05
monochromatic
#0B031C #0B031C #12052F #270B66 #3C119E

Accessibility & contrast

On white

19.29
#12052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12052F
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12052F#FFFFFF#000000##FFFFFF
##12052F1.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#081019
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #12052f;
/* rgb */ color: rgb(18, 5, 47);
/* oklch */ color: oklch(17.3% 0.079 290.6);
Tailwind
colors: {
  custom: {
    50: '#524868',
    500: '#12052f',
    950: '#000000',
  },
}
SCSS
$custom: #12052f;
$custom-light: #524868;
$custom-dark: #000000;
JSON
{
  "hex": "#12052f",
  "rgb": {
    "r": 18,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 258.571,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1733,
    "c": 0.0789,
    "h": 290.6
  },
  "luminance": 0.00442
}

Semantic roles & 50–950 ramp

primary
#12052F
secondary
#57711F
accent
#F731BA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #12052F

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

Preview Lab → · Contrast checker → · Palette generator →

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