#120233#120233

#120233 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.090 H 289.7°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#120233
RGBrgb(18, 2, 51)
HSLhsl(260, 92%, 10%)
HSVhsv(260, 96%, 20%)
CMYKcmyk(64.7%, 96.1%, 0%, 80%)
CIE-LABlab(3.71, 19.56, -27.51)
CIE-LCHlch(3.71, 33.75, 305.42°)
OKLaboklab(17.16% 0.0304 -0.0847)
OKLCHoklch(17.16% 0.09 289.7)
XYZxyz(0.8685, 0.4110, 3.1649)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120233 #233302
analogous
#020A33 #120233 #2A0233
triadic
#120233 #331202 #023312
tetradic
#120233 #33020A #233302 #02332A
square
#120233 #33020A #233302 #02332A
split-complementary
#120233 #332A02 #0A3302
monochromatic
#0A011D #0A011D #120233 #27046E #3C07A9

Accessibility & contrast

On white

19.40
#120233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120233
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120233#FFFFFF#000000##FFFFFF
##1202331.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E34
Deuteranopia (green-blind)
#000C32
Tritanopia (blue-blind)
#05101A
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #120233;
/* rgb */ color: rgb(18, 2, 51);
/* oklch */ color: oklch(17.2% 0.090 289.7);
Tailwind
colors: {
  custom: {
    50: '#53476b',
    500: '#120233',
    950: '#000000',
  },
}
SCSS
$custom: #120233;
$custom-light: #53476b;
$custom-dark: #000000;
JSON
{
  "hex": "#120233",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 51
  },
  "hsl": {
    "h": 259.592,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.1716,
    "c": 0.09003,
    "h": 289.7
  },
  "luminance": 0.00411
}

Semantic roles & 50–950 ramp

primary
#120233
secondary
#59771A
accent
#FF29B9
background
#F4F3F6
surface
#E8E5EB
border
#C4C1C6
text
#030007
muted
#78777A

Preview Lab

Preview with #120233

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

Preview Lab → · Contrast checker → · Palette generator →

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