#180A3F#180A3F

#180A3F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.094 H 287.3°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#180A3F
RGBrgb(24, 10, 63)
HSLhsl(256, 73%, 14%)
HSVhsv(256, 84%, 25%)
CMYKcmyk(61.9%, 84.1%, 0%, 75.3%)
CIE-LABlab(6.96, 23.09, -30.96)
CIE-LCHlch(6.96, 38.63, 306.72°)
OKLaboklab(20.78% 0.0278 -0.0893)
OKLCHoklch(20.78% 0.094 287.3)
XYZxyz(1.3822, 0.7701, 4.7775)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A3F #313F0A
analogous
#0A173F #180A3F #330A3F
triadic
#180A3F #3F180A #0A3F18
tetradic
#180A3F #3F0A17 #313F0A #0A3F33
square
#180A3F #3F0A17 #313F0A #0A3F33
split-complementary
#180A3F #3F330A #173F0A
monochromatic
#0A041A #0A041A #180A3F #2C1274 #401BA9

Accessibility & contrast

On white

18.20
#180A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A3F
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A3F#FFFFFF#000000##FFFFFF
##180A3F1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#081924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180a3f;
/* rgb */ color: rgb(24, 10, 63);
/* oklch */ color: oklch(20.8% 0.094 287.3);
Tailwind
colors: {
  custom: {
    50: '#5a4b75',
    500: '#180a3f',
    950: '#000000',
  },
}
SCSS
$custom: #180a3f;
$custom-light: #5a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#180a3f",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 63
  },
  "hsl": {
    "h": 255.849,
    "s": 72.603,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20783,
    "c": 0.09353,
    "h": 287.3
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#180A3F
secondary
#667C29
accent
#EF38BF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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