#180B48#180B48

#180B48 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.105 H 283.4°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#180B48
RGBrgb(24, 11, 72)
HSLhsl(253, 73%, 16%)
HSVhsv(253, 85%, 28%)
CMYKcmyk(66.7%, 84.7%, 0%, 71.8%)
CIE-LABlab(8.14, 25.82, -35.39)
CIE-LCHlch(8.14, 43.81, 306.12°)
OKLaboklab(21.96% 0.0242 -0.102)
OKLCHoklch(21.96% 0.105 283.4)
XYZxyz(1.6657, 0.9013, 6.2158)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B48 #3B480B
analogous
#0B1D48 #180B48 #370B48
triadic
#180B48 #48180B #0B4818
tetradic
#180B48 #480B1D #3B480B #0B4837
square
#180B48 #480B1D #3B480B #0B4837
split-complementary
#180B48 #48370B #1D480B
monochromatic
#09041B #09041B #180B48 #2A137D #3B1BB2

Accessibility & contrast

On white

17.79
#180B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180B48
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B48#FFFFFF#000000##FFFFFF
##180B481.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001647
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #180b48;
/* rgb */ color: rgb(24, 11, 72);
/* oklch */ color: oklch(22.0% 0.105 283.4);
Tailwind
colors: {
  custom: {
    50: '#5c4c7c',
    500: '#180b48',
    950: '#000000',
  },
}
SCSS
$custom: #180b48;
$custom-light: #5c4c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#180b48",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 252.787,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2196,
    "c": 0.10485,
    "h": 283.4
  },
  "luminance": 0.00901
}

Semantic roles & 50–950 ramp

primary
#180B48
secondary
#71842A
accent
#F038C9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #180B48

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

Preview Lab → · Contrast checker → · Palette generator →

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