#120340#120340

#120340 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.105 H 282.6°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#120340
RGBrgb(18, 3, 64)
HSLhsl(255, 91%, 13%)
HSVhsv(255, 95%, 25%)
CMYKcmyk(71.9%, 95.3%, 0%, 74.9%)
CIE-LABlab(5.09, 25.74, -34.75)
CIE-LCHlch(5.09, 43.24, 306.53°)
OKLaboklab(19.08% 0.0229 -0.1024)
OKLCHoklch(19.08% 0.105 282.6)
XYZxyz(1.2071, 0.5638, 4.8947)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120340 #314003
analogous
#031240 #120340 #300340
triadic
#120340 #401203 #034012
tetradic
#120340 #400312 #314003 #034030
square
#120340 #400312 #314003 #034030
split-complementary
#120340 #403003 #124003
monochromatic
#08011D #08011D #120340 #22067A #3308B5

Accessibility & contrast

On white

18.87
#120340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#120340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120340
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120340#FFFFFF#000000##FFFFFF
##1203401.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001622
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120340;
/* rgb */ color: rgb(18, 3, 64);
/* oklch */ color: oklch(19.1% 0.105 282.6);
Tailwind
colors: {
  custom: {
    50: '#584776',
    500: '#120340',
    950: '#000000',
  },
}
SCSS
$custom: #120340;
$custom-light: #584776;
$custom-dark: #000000;
JSON
{
  "hex": "#120340",
  "rgb": {
    "r": 18,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 254.754,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19081,
    "c": 0.10495,
    "h": 282.6
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#120340
secondary
#69821D
accent
#FF29CA
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #120340

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

Preview Lab → · Contrast checker → · Palette generator →

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