#180A2C#180A2C

#180A2C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.066 H 298.9°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#180A2C
RGBrgb(24, 10, 44)
HSLhsl(265, 63%, 11%)
HSVhsv(265, 77%, 17%)
CMYKcmyk(45.5%, 77.3%, 0%, 82.7%)
CIE-LABlab(5.36, 15.26, -19.62)
CIE-LCHlch(5.36, 24.85, 307.87°)
OKLaboklab(18.83% 0.0318 -0.0576)
OKLCHoklch(18.83% 0.066 298.9)
XYZxyz(0.9397, 0.5931, 2.4474)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A2C #1E2C0A
analogous
#0A0D2C #180A2C #290A2C
triadic
#180A2C #2C180A #0A2C18
tetradic
#180A2C #2C0A0D #1E2C0A #0A2C29
square
#180A2C #2C0A0D #1E2C0A #0A2C29
split-complementary
#180A2C #2C290A #0D2C0A
monochromatic
#0E0619 #0E0619 #180A2C #33155E #4E2190

Accessibility & contrast

On white

18.77
#180A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#180A2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A2C
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A2C#FFFFFF#000000##FFFFFF
##180A2C1.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#01112B
Tritanopia (blue-blind)
#131219
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #180a2c;
/* rgb */ color: rgb(24, 10, 44);
/* oklch */ color: oklch(18.8% 0.066 298.9);
Tailwind
colors: {
  custom: {
    50: '#564b65',
    500: '#180a2c',
    950: '#000000',
  },
}
SCSS
$custom: #180a2c;
$custom-light: #564b65;
$custom-dark: #000000;
JSON
{
  "hex": "#180a2c",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 44
  },
  "hsl": {
    "h": 264.706,
    "s": 62.963,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18826,
    "c": 0.06574,
    "h": 298.9
  },
  "luminance": 0.00593
}

Semantic roles & 50–950 ramp

primary
#180A2C
secondary
#4F6929
accent
#E642A2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #180A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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