#180C4E#180C4E

#180C4E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.112 H 281.1°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#180C4E
RGBrgb(24, 12, 78)
HSLhsl(251, 73%, 18%)
HSVhsv(251, 85%, 31%)
CMYKcmyk(69.2%, 84.6%, 0%, 69.4%)
CIE-LABlab(9.05, 27.31, -38.06)
CIE-LCHlch(9.05, 46.85, 305.66°)
OKLaboklab(22.81% 0.0216 -0.1098)
OKLCHoklch(22.81% 0.112 281.1)
XYZxyz(1.8829, 1.0071, 7.3014)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C4E #424E0C
analogous
#0C214E #180C4E #390C4E
triadic
#180C4E #4E180C #0C4E18
tetradic
#180C4E #4E0C21 #424E0C #0C4E39
square
#180C4E #4E0C21 #424E0C #0C4E39
split-complementary
#180C4E #4E390C #214E0C
monochromatic
#08041B #08041B #180C4E #281483 #391CB8

Accessibility & contrast

On white

17.48
#180C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#180C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C4E
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C4E#FFFFFF#000000##FFFFFF
##180C4E1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#00174D
Tritanopia (blue-blind)
#001F2D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180c4e;
/* rgb */ color: rgb(24, 12, 78);
/* oklch */ color: oklch(22.8% 0.112 281.1);
Tailwind
colors: {
  custom: {
    50: '#5e4d80',
    500: '#180c4e',
    950: '#000000',
  },
}
SCSS
$custom: #180c4e;
$custom-light: #5e4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#180c4e",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 250.909,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22809,
    "c": 0.11193,
    "h": 281.1
  },
  "luminance": 0.01007
}

Semantic roles & 50–950 ramp

primary
#180C4E
secondary
#798A2C
accent
#F038CF
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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