#120339#120339

#120339 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.096 H 285.8°. Best body text is #FFFFFF at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#120339
RGBrgb(18, 3, 57)
HSLhsl(257, 90%, 12%)
HSVhsv(257, 95%, 22%)
CMYKcmyk(68.4%, 94.7%, 0%, 77.6%)
CIE-LABlab(4.42, 22.29, -30.78)
CIE-LCHlch(4.42, 38.01, 305.91°)
OKLaboklab(18.15% 0.0262 -0.0923)
OKLCHoklch(18.15% 0.096 285.8)
XYZxyz(1.0203, 0.4891, 3.9107)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120339 #2A3903
analogous
#030F39 #120339 #2D0339
triadic
#120339 #391203 #033912
tetradic
#120339 #39030F #2A3903 #03392D
square
#120339 #39030F #2A3903 #03392D
split-complementary
#120339 #392D03 #0F3903
monochromatic
#09021D #09021D #120339 #240673 #3709AD

Accessibility & contrast

On white

19.13
#120339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#120339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120339
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120339#FFFFFF#000000##FFFFFF
##1203391.0019.131.1019.13
#FFFFFF19.131.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113A
Deuteranopia (green-blind)
#000E38
Tritanopia (blue-blind)
#01131E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #120339;
/* rgb */ color: rgb(18, 3, 57);
/* oklch */ color: oklch(18.2% 0.096 285.8);
Tailwind
colors: {
  custom: {
    50: '#554770',
    500: '#120339',
    950: '#000000',
  },
}
SCSS
$custom: #120339;
$custom-light: #554770;
$custom-dark: #000000;
JSON
{
  "hex": "#120339",
  "rgb": {
    "r": 18,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 256.667,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.18152,
    "c": 0.09594,
    "h": 285.8
  },
  "luminance": 0.00489
}

Semantic roles & 50–950 ramp

primary
#120339
secondary
#617C1C
accent
#FF29C3
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #120339

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

Preview Lab → · Contrast checker → · Palette generator →

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