#180A3E#180A3E

#180A3E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.092 H 287.8°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#180A3E
RGBrgb(24, 10, 62)
HSLhsl(256, 72%, 14%)
HSVhsv(256, 84%, 24%)
CMYKcmyk(61.3%, 83.9%, 0%, 75.7%)
CIE-LABlab(6.86, 22.71, -30.41)
CIE-LCHlch(6.86, 37.95, 306.75°)
OKLaboklab(20.67% 0.0281 -0.0877)
OKLCHoklch(20.67% 0.092 287.8)
XYZxyz(1.3545, 0.7590, 4.6316)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A3E #303E0A
analogous
#0A163E #180A3E #320A3E
triadic
#180A3E #3E180A #0A3E18
tetradic
#180A3E #3E0A16 #303E0A #0A3E32
square
#180A3E #3E0A16 #303E0A #0A3E32
split-complementary
#180A3E #3E320A #163E0A
monochromatic
#0A041A #0A041A #180A3E #2C1373 #411BA7

Accessibility & contrast

On white

18.23
#180A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A3E
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A3E#FFFFFF#000000##FFFFFF
##180A3E1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001640
Deuteranopia (green-blind)
#00143D
Tritanopia (blue-blind)
#091823
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180a3e;
/* rgb */ color: rgb(24, 10, 62);
/* oklch */ color: oklch(20.7% 0.092 287.8);
Tailwind
colors: {
  custom: {
    50: '#5a4a74',
    500: '#180a3e',
    950: '#000000',
  },
}
SCSS
$custom: #180a3e;
$custom-light: #5a4a74;
$custom-dark: #000000;
JSON
{
  "hex": "#180a3e",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 256.154,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20671,
    "c": 0.09213,
    "h": 287.8
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#180A3E
secondary
#657B28
accent
#EF39BE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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