#180A40#180A40

#180A40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.095 H 286.9°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#180A40
RGBrgb(24, 10, 64)
HSLhsl(256, 73%, 15%)
HSVhsv(256, 84%, 25%)
CMYKcmyk(62.5%, 84.4%, 0%, 74.9%)
CIE-LABlab(7.06, 23.48, -31.51)
CIE-LCHlch(7.06, 39.29, 306.69°)
OKLaboklab(20.9% 0.0275 -0.0909)
OKLCHoklch(20.9% 0.095 286.9)
XYZxyz(1.4104, 0.7814, 4.9260)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A40 #32400A
analogous
#0A1740 #180A40 #330A40
triadic
#180A40 #40180A #0A4018
tetradic
#180A40 #400A17 #32400A #0A4033
square
#180A40 #400A17 #32400A #0A4033
split-complementary
#180A40 #40330A #17400A
monochromatic
#0A041A #0A041A #180A40 #2C1275 #401BAA

Accessibility & contrast

On white

18.16
#180A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A40
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A40#FFFFFF#000000##FFFFFF
##180A401.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#071924
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180a40;
/* rgb */ color: rgb(24, 10, 64);
/* oklch */ color: oklch(20.9% 0.095 286.9);
Tailwind
colors: {
  custom: {
    50: '#5b4b75',
    500: '#180a40',
    950: '#000000',
  },
}
SCSS
$custom: #180a40;
$custom-light: #5b4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#180a40",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 255.556,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20895,
    "c": 0.09494,
    "h": 286.9
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#180A40
secondary
#677D29
accent
#F038C0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180A40

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

Preview Lab → · Contrast checker → · Palette generator →

#180A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva