#180A4D#180A4D

#180A4D is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.4% C 0.113 H 281.9°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#180A4D
RGBrgb(24, 10, 77)
HSLhsl(253, 77%, 17%)
HSVhsv(253, 87%, 30%)
CMYKcmyk(68.8%, 87%, 0%, 69.8%)
CIE-LABlab(8.54, 28.09, -38.21)
CIE-LCHlch(8.54, 47.42, 306.32°)
OKLaboklab(22.42% 0.0233 -0.1102)
OKLCHoklch(22.42% 0.113 281.9)
XYZxyz(1.8244, 0.9470, 7.1064)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A4D #3F4D0A
analogous
#0A1E4D #180A4D #3A0A4D
triadic
#180A4D #4D180A #0A4D18
tetradic
#180A4D #4D0A1E #3F4D0A #0A4D3A
square
#180A4D #4D0A1E #3F4D0A #0A4D3A
split-complementary
#180A4D #4D3A0A #1E4D0A
monochromatic
#08041B #08041B #180A4D #291183 #3A18B9

Accessibility & contrast

On white

17.66
#180A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#180A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A4D
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A4D#FFFFFF#000000##FFFFFF
##180A4D1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00164C
Tritanopia (blue-blind)
#001E2C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #180a4d;
/* rgb */ color: rgb(24, 10, 77);
/* oklch */ color: oklch(22.4% 0.113 281.9);
Tailwind
colors: {
  custom: {
    50: '#5e4b80',
    500: '#180a4d',
    950: '#000000',
  },
}
SCSS
$custom: #180a4d;
$custom-light: #5e4b80;
$custom-dark: #000000;
JSON
{
  "hex": "#180a4d",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 77
  },
  "hsl": {
    "h": 252.537,
    "s": 77.011,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22418,
    "c": 0.11267,
    "h": 281.9
  },
  "luminance": 0.00947
}

Semantic roles & 50–950 ramp

primary
#180A4D
secondary
#758A29
accent
#F434CC
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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