#180A38#180A38

#180A38 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.084 H 290.8°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#180A38
RGBrgb(24, 10, 56)
HSLhsl(258, 70%, 13%)
HSVhsv(258, 82%, 22%)
CMYKcmyk(57.1%, 82.1%, 0%, 78%)
CIE-LABlab(6.29, 20.30, -26.99)
CIE-LCHlch(6.29, 33.77, 306.94°)
OKLaboklab(20.02% 0.0297 -0.0781)
OKLCHoklch(20.02% 0.084 290.8)
XYZxyz(1.1988, 0.6967, 3.8119)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A38 #2A380A
analogous
#0A1338 #180A38 #2F0A38
triadic
#180A38 #38180A #0A3818
tetradic
#180A38 #380A13 #2A380A #0A382F
square
#180A38 #380A13 #2A380A #0A382F
split-complementary
#180A38 #382F0A #13380A
monochromatic
#0B051A #0B051A #180A38 #2E136C #451DA0

Accessibility & contrast

On white

18.43
#180A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A38
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A38#FFFFFF#000000##FFFFFF
##180A381.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#0D1620
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180a38;
/* rgb */ color: rgb(24, 10, 56);
/* oklch */ color: oklch(20.0% 0.084 290.8);
Tailwind
colors: {
  custom: {
    50: '#594a6f',
    500: '#180a38',
    950: '#000000',
  },
}
SCSS
$custom: #180a38;
$custom-light: #594a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#180a38",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 56
  },
  "hsl": {
    "h": 258.261,
    "s": 69.697,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2002,
    "c": 0.08356,
    "h": 290.8
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#180A38
secondary
#5E7528
accent
#ED3BB7
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180A38

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

Preview Lab → · Contrast checker → · Palette generator →

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