#180A2A#180A2A

#180A2A is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.6% C 0.063 H 300.6°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#180A2A
RGBrgb(24, 10, 42)
HSLhsl(266, 62%, 10%)
HSVhsv(266, 76%, 16%)
CMYKcmyk(42.9%, 76.2%, 0%, 83.5%)
CIE-LABlab(5.22, 14.41, -18.32)
CIE-LCHlch(5.22, 23.31, 308.19°)
OKLaboklab(18.64% 0.0319 -0.054)
OKLCHoklch(18.64% 0.063 300.6)
XYZxyz(0.9030, 0.5784, 2.2541)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A2A #1C2A0A
analogous
#0A0C2A #180A2A #280A2A
triadic
#180A2A #2A180A #0A2A18
tetradic
#180A2A #2A0A0C #1C2A0A #0A2A28
square
#180A2A #2A0A0C #1C2A0A #0A2A28
split-complementary
#180A2A #2A280A #0C2A0A
monochromatic
#0E0619 #0E0619 #180A2A #34165B #50228D

Accessibility & contrast

On white

18.82
#180A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180A2A
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A2A#FFFFFF#000000##FFFFFF
##180A2A1.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#141118
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #180a2a;
/* rgb */ color: rgb(24, 10, 42);
/* oklch */ color: oklch(18.6% 0.063 300.6);
Tailwind
colors: {
  custom: {
    50: '#564b63',
    500: '#180a2a',
    950: '#000000',
  },
}
SCSS
$custom: #180a2a;
$custom-light: #564b63;
$custom-dark: #000000;
JSON
{
  "hex": "#180a2a",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 42
  },
  "hsl": {
    "h": 266.25,
    "s": 61.538,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18643,
    "c": 0.06269,
    "h": 300.6
  },
  "luminance": 0.00578
}

Semantic roles & 50–950 ramp

primary
#180A2A
secondary
#4C6729
accent
#E5439E
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030105
muted
#787779

Preview Lab

Preview with #180A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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