#180948#180948

#180948 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.107 H 283.9°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#180948
RGBrgb(24, 9, 72)
HSLhsl(254, 78%, 16%)
HSVhsv(254, 88%, 28%)
CMYKcmyk(66.7%, 87.5%, 0%, 71.8%)
CIE-LABlab(7.74, 26.96, -36.04)
CIE-LCHlch(7.74, 45.01, 306.79°)
OKLaboklab(21.68% 0.0257 -0.1039)
OKLCHoklch(21.68% 0.107 283.9)
XYZxyz(1.6437, 0.8573, 6.2085)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180948 #394809
analogous
#091948 #180948 #370948
triadic
#180948 #481809 #094818
tetradic
#180948 #480919 #394809 #094837
square
#180948 #480919 #394809 #094837
split-complementary
#180948 #483709 #194809
monochromatic
#09031B #09031B #180948 #2A107E #3C17B5

Accessibility & contrast

On white

17.93
#180948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180948
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180948#FFFFFF#000000##FFFFFF
##1809481.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180948;
/* rgb */ color: rgb(24, 9, 72);
/* oklch */ color: oklch(21.7% 0.107 283.9);
Tailwind
colors: {
  custom: {
    50: '#5d4a7c',
    500: '#180948',
    950: '#000000',
  },
}
SCSS
$custom: #180948;
$custom-light: #5d4a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#180948",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 254.286,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21682,
    "c": 0.10705,
    "h": 283.9
  },
  "luminance": 0.00857
}

Semantic roles & 50–950 ramp

primary
#180948
secondary
#6F8527
accent
#F434C6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #180948

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

Preview Lab → · Contrast checker → · Palette generator →

#180948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva