#180D3F#180D3F

#180D3F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.090 H 286.1°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#180D3F
RGBrgb(24, 13, 63)
HSLhsl(253, 66%, 15%)
HSVhsv(253, 79%, 25%)
CMYKcmyk(61.9%, 79.4%, 0%, 75.3%)
CIE-LABlab(7.59, 21.37, -29.92)
CIE-LCHlch(7.59, 36.77, 305.54°)
OKLaboklab(21.27% 0.0248 -0.086)
OKLCHoklch(21.27% 0.09 286.1)
XYZxyz(1.4175, 0.8408, 4.7893)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D3F #343F0D
analogous
#0D1B3F #180D3F #310D3F
triadic
#180D3F #3F180D #0D3F18
tetradic
#180D3F #3F0D1B #343F0D #0D3F31
square
#180D3F #3F0D1B #343F0D #0D3F31
split-complementary
#180D3F #3F310D #1B3F0D
monochromatic
#0A0519 #0A0519 #180D3F #2B1772 #3F22A4

Accessibility & contrast

On white

17.98
#180D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D3F
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D3F#FFFFFF#000000##FFFFFF
##180D3F1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#071A24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180d3f;
/* rgb */ color: rgb(24, 13, 63);
/* oklch */ color: oklch(21.3% 0.090 286.1);
Tailwind
colors: {
  custom: {
    50: '#5a4c75',
    500: '#180d3f',
    950: '#000000',
  },
}
SCSS
$custom: #180d3f;
$custom-light: #5a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#180d3f",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 253.2,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21267,
    "c": 0.08956,
    "h": 286.1
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#180D3F
secondary
#6A7B2D
accent
#E93FC3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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