#180A45#180A45

#180A45 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.102 H 284.8°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#180A45
RGBrgb(24, 10, 69)
HSLhsl(254, 75%, 15%)
HSVhsv(254, 86%, 27%)
CMYKcmyk(65.2%, 85.5%, 0%, 72.9%)
CIE-LABlab(7.59, 25.34, -34.18)
CIE-LCHlch(7.59, 42.55, 306.56°)
OKLaboklab(21.47% 0.026 -0.0985)
OKLCHoklch(21.47% 0.102 284.8)
XYZxyz(1.5591, 0.8408, 5.7092)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180A45 #37450A
analogous
#0A1945 #180A45 #350A45
triadic
#180A45 #45180A #0A4518
tetradic
#180A45 #450A19 #37450A #0A4535
square
#180A45 #450A19 #37450A #0A4535
split-complementary
#180A45 #45350A #19450A
monochromatic
#09041B #09041B #180A45 #2B127A #3D19B0

Accessibility & contrast

On white

17.98
#180A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180A45
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180A45#FFFFFF#000000##FFFFFF
##180A451.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001847
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#021B27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180a45;
/* rgb */ color: rgb(24, 10, 69);
/* oklch */ color: oklch(21.5% 0.102 284.8);
Tailwind
colors: {
  custom: {
    50: '#5c4b79',
    500: '#180a45',
    950: '#000000',
  },
}
SCSS
$custom: #180a45;
$custom-light: #5c4b79;
$custom-dark: #000000;
JSON
{
  "hex": "#180a45",
  "rgb": {
    "r": 24,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 254.237,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21468,
    "c": 0.10186,
    "h": 284.8
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#180A45
secondary
#6D8229
accent
#F136C5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180A45

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

Preview Lab → · Contrast checker → · Palette generator →

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