#180B45#180B45

#180B45 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.101 H 284.5°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#180B45
RGBrgb(24, 11, 69)
HSLhsl(253, 73%, 16%)
HSVhsv(253, 84%, 27%)
CMYKcmyk(65.2%, 84.1%, 0%, 72.9%)
CIE-LABlab(7.80, 24.77, -33.85)
CIE-LCHlch(7.80, 41.94, 306.20°)
OKLaboklab(21.61% 0.0251 -0.0975)
OKLCHoklch(21.61% 0.101 284.5)
XYZxyz(1.5702, 0.8631, 5.7129)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B45 #38450B
analogous
#0B1B45 #180B45 #350B45
triadic
#180B45 #45180B #0B4518
tetradic
#180B45 #450B1B #38450B #0B4535
square
#180B45 #450B1B #38450B #0B4535
split-complementary
#180B45 #45350B #1B450B
monochromatic
#09041A #09041A #180B45 #2A137A #3D1CAF

Accessibility & contrast

On white

17.91
#180B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180B45
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B45#FFFFFF#000000##FFFFFF
##180B451.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180b45;
/* rgb */ color: rgb(24, 11, 69);
/* oklch */ color: oklch(21.6% 0.101 284.5);
Tailwind
colors: {
  custom: {
    50: '#5c4b79',
    500: '#180b45',
    950: '#000000',
  },
}
SCSS
$custom: #180b45;
$custom-light: #5c4b79;
$custom-dark: #000000;
JSON
{
  "hex": "#180b45",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 253.448,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21613,
    "c": 0.1007,
    "h": 284.5
  },
  "luminance": 0.00863
}

Semantic roles & 50–950 ramp

primary
#180B45
secondary
#6E812A
accent
#EF39C6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180B45

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

Preview Lab → · Contrast checker → · Palette generator →

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