#180A41#180A41

#180A41 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.096 H 286.4°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#180A41
RGBrgb(24, 10, 65)
HSLhsl(255, 73%, 15%)
HSVhsv(255, 85%, 25%)
CMYKcmyk(63.1%, 84.6%, 0%, 74.5%)
CIE-LABlab(7.16, 23.86, -32.05)
CIE-LCHlch(7.16, 39.96, 306.67°)
OKLaboklab(21.01% 0.0272 -0.0924)
OKLCHoklch(21.01% 0.096 286.4)
XYZxyz(1.4391, 0.7928, 5.0772)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A41 #33410A
analogous
#0A1841 #180A41 #340A41
triadic
#180A41 #41180A #0A4118
tetradic
#180A41 #410A18 #33410A #0A4134
square
#180A41 #410A18 #33410A #0A4134
split-complementary
#180A41 #41340A #18410A
monochromatic
#0A041B #0A041B #180A41 #2C1276 #3F1AAB

Accessibility & contrast

On white

18.13
#180A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180A41
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A41#FFFFFF#000000##FFFFFF
##180A411.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#061925
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180a41;
/* rgb */ color: rgb(24, 10, 65);
/* oklch */ color: oklch(21.0% 0.096 286.4);
Tailwind
colors: {
  custom: {
    50: '#5b4b76',
    500: '#180a41',
    950: '#000000',
  },
}
SCSS
$custom: #180a41;
$custom-light: #5b4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#180a41",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 255.273,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21008,
    "c": 0.09634,
    "h": 286.4
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#180A41
secondary
#687E29
accent
#F038C1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180A41

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

Preview Lab → · Contrast checker → · Palette generator →

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