#180A28#180A28

#180A28 is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.5% C 0.060 H 302.4°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#180A28
RGBrgb(24, 10, 40)
HSLhsl(268, 60%, 10%)
HSVhsv(268, 75%, 16%)
CMYKcmyk(40%, 75%, 0%, 84.3%)
CIE-LABlab(5.10, 13.57, -17.00)
CIE-LCHlch(5.10, 21.76, 308.59°)
OKLaboklab(18.47% 0.032 -0.0503)
OKLCHoklch(18.47% 0.06 302.4)
XYZxyz(0.8681, 0.5645, 2.0703)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A28 #1A280A
analogous
#0A0B28 #180A28 #270A28
triadic
#180A28 #28180A #0A2818
tetradic
#180A28 #280A0B #1A280A #0A2827
square
#180A28 #280A0B #1A280A #0A2827
split-complementary
#180A28 #28270A #0B280A
monochromatic
#0F0618 #0F0618 #180A28 #351659 #53228A

Accessibility & contrast

On white

18.87
#180A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#180A28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A28
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A28#FFFFFF#000000##FFFFFF
##180A281.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011129
Deuteranopia (green-blind)
#041127
Tritanopia (blue-blind)
#151017
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #180a28;
/* rgb */ color: rgb(24, 10, 40);
/* oklch */ color: oklch(18.5% 0.060 302.4);
Tailwind
colors: {
  custom: {
    50: '#554b62',
    500: '#180a28',
    950: '#000000',
  },
}
SCSS
$custom: #180a28;
$custom-light: #554b62;
$custom-dark: #000000;
JSON
{
  "hex": "#180a28",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 40
  },
  "hsl": {
    "h": 268,
    "s": 60,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18466,
    "c": 0.05961,
    "h": 302.4
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#180A28
secondary
#496529
accent
#E34599
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030105
muted
#787779

Preview Lab

Preview with #180A28

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

Preview Lab → · Contrast checker → · Palette generator →

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