#180E40#180E40

#180E40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.090 H 285.2°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#180E40
RGBrgb(24, 14, 64)
HSLhsl(252, 64%, 15%)
HSVhsv(252, 78%, 25%)
CMYKcmyk(62.5%, 78.1%, 0%, 74.9%)
CIE-LABlab(7.93, 21.10, -30.08)
CIE-LCHlch(7.93, 36.74, 305.05°)
OKLaboklab(21.55% 0.0236 -0.0865)
OKLCHoklch(21.55% 0.09 285.2)
XYZxyz(1.4589, 0.8783, 4.9422)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180E40 #36400E
analogous
#0E1D40 #180E40 #310E40
triadic
#180E40 #40180E #0E4018
tetradic
#180E40 #400E1D #36400E #0E4031
square
#180E40 #400E1D #36400E #0E4031
split-complementary
#180E40 #40310E #1D400E
monochromatic
#090519 #090519 #180E40 #2B1972 #3E24A4

Accessibility & contrast

On white

17.86
#180E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#180E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180E40
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180E40#FFFFFF#000000##FFFFFF
##180E401.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#061B25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180e40;
/* rgb */ color: rgb(24, 14, 64);
/* oklch */ color: oklch(21.5% 0.090 285.2);
Tailwind
colors: {
  custom: {
    50: '#5a4d75',
    500: '#180e40',
    950: '#000000',
  },
}
SCSS
$custom: #180e40;
$custom-light: #5a4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#180e40",
  "rgb": {
    "r": 24,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 252,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21546,
    "c": 0.08963,
    "h": 285.2
  },
  "luminance": 0.00878
}

Semantic roles & 50–950 ramp

primary
#180E40
secondary
#6C7B2F
accent
#E741C6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180E40

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

Preview Lab → · Contrast checker → · Palette generator →

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