#120331#120331

#120331 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.086 H 290.5°. Best body text is #FFFFFF at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#120331
RGBrgb(18, 3, 49)
HSLhsl(260, 88%, 10%)
HSVhsv(260, 94%, 19%)
CMYKcmyk(63.3%, 93.9%, 0%, 80.8%)
CIE-LABlab(3.75, 18.08, -25.95)
CIE-LCHlch(3.75, 31.63, 304.86°)
OKLaboklab(17.13% 0.0299 -0.0801)
OKLCHoklch(17.13% 0.086 290.5)
XYZxyz(0.8362, 0.4154, 2.9413)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120331 #223103
analogous
#030B31 #120331 #290331
triadic
#120331 #311203 #033112
tetradic
#120331 #31030B #223103 #033129
square
#120331 #31030B #223103 #033129
split-complementary
#120331 #312903 #0B3103
monochromatic
#0B021D #0B021D #120331 #27076B #3C0AA4

Accessibility & contrast

On white

19.39
#120331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#120331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120331
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120331#FFFFFF#000000##FFFFFF
##1203311.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000C30
Tritanopia (blue-blind)
#070F19
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #120331;
/* rgb */ color: rgb(18, 3, 49);
/* oklch */ color: oklch(17.1% 0.086 290.5);
Tailwind
colors: {
  custom: {
    50: '#524769',
    500: '#120331',
    950: '#000000',
  },
}
SCSS
$custom: #120331;
$custom-light: #524769;
$custom-dark: #000000;
JSON
{
  "hex": "#120331",
  "rgb": {
    "r": 18,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 259.565,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17129,
    "c": 0.0855,
    "h": 290.5
  },
  "luminance": 0.00415
}

Semantic roles & 50–950 ramp

primary
#120331
secondary
#57741B
accent
#FF29B9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #120331

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

Preview Lab → · Contrast checker → · Palette generator →

#120331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva