#120A33#120A33

#120A33 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.076 H 285.3°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#120A33
RGBrgb(18, 10, 51)
HSLhsl(252, 67%, 12%)
HSVhsv(252, 80%, 20%)
CMYKcmyk(64.7%, 80.4%, 0%, 80%)
CIE-LABlab(5.28, 16.18, -24.99)
CIE-LCHlch(5.28, 29.77, 302.92°)
OKLaboklab(18.78% 0.0202 -0.0737)
OKLCHoklch(18.78% 0.076 285.3)
XYZxyz(0.9554, 0.5846, 3.1938)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A33 #2B330A
analogous
#0A1733 #120A33 #270A33
triadic
#120A33 #33120A #0A3312
tetradic
#120A33 #330A17 #2B330A #0A3327
square
#120A33 #330A17 #2B330A #0A3327
split-complementary
#120A33 #33270A #17330A
monochromatic
#09051A #09051A #120A33 #241466 #361E99

Accessibility & contrast

On white

18.80
#120A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120A33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120A33
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A33#FFFFFF#000000##FFFFFF
##120A331.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001334
Deuteranopia (green-blind)
#001032
Tritanopia (blue-blind)
#05141D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120a33;
/* rgb */ color: rgb(18, 10, 51);
/* oklch */ color: oklch(18.8% 0.076 285.3);
Tailwind
colors: {
  custom: {
    50: '#534a6b',
    500: '#120a33',
    950: '#000000',
  },
}
SCSS
$custom: #120a33;
$custom-light: #534a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#120a33",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 51
  },
  "hsl": {
    "h": 251.707,
    "s": 67.213,
    "l": 11.961
  },
  "oklch": {
    "l": 0.18783,
    "c": 0.07643,
    "h": 285.3
  },
  "luminance": 0.00585
}

Semantic roles & 50–950 ramp

primary
#120A33
secondary
#627028
accent
#EA3EC8
background
#F4F4F6
surface
#E8E7EB
border
#C4C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #120A33

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

Preview Lab → · Contrast checker → · Palette generator →

#120A33 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva