#120231#120231

#120231 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.088 H 291.0°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#120231
RGBrgb(18, 2, 49)
HSLhsl(260, 92%, 10%)
HSVhsv(260, 96%, 19%)
CMYKcmyk(63.3%, 95.9%, 0%, 80.8%)
CIE-LABlab(3.56, 18.48, -26.27)
CIE-LCHlch(3.56, 32.12, 305.13°)
OKLaboklab(16.9% 0.0314 -0.0817)
OKLCHoklch(16.9% 0.088 291)
XYZxyz(0.8254, 0.3937, 2.9376)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120231 #213102
analogous
#020931 #120231 #2A0231
triadic
#120231 #311202 #023112
tetradic
#120231 #310209 #213102 #02312A
square
#120231 #310209 #213102 #02312A
split-complementary
#120231 #312A02 #093102
monochromatic
#0B011D #0B011D #120231 #28046C #3D07A7

Accessibility & contrast

On white

19.47
#120231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120231
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120231#FFFFFF#000000##FFFFFF
##1202311.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.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: #120231;
/* rgb */ color: rgb(18, 2, 49);
/* oklch */ color: oklch(16.9% 0.088 291.0);
Tailwind
colors: {
  custom: {
    50: '#524769',
    500: '#120231',
    950: '#000000',
  },
}
SCSS
$custom: #120231;
$custom-light: #524769;
$custom-dark: #000000;
JSON
{
  "hex": "#120231",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 260.426,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.16903,
    "c": 0.08751,
    "h": 291
  },
  "luminance": 0.00394
}

Semantic roles & 50–950 ramp

primary
#120231
secondary
#567519
accent
#FF29B6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #120231

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

Preview Lab → · Contrast checker → · Palette generator →

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