#180B4F#180B4F

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

Color values

HEX#180B4F
RGBrgb(24, 11, 79)
HSLhsl(251, 76%, 18%)
HSVhsv(251, 86%, 31%)
CMYKcmyk(69.6%, 86.1%, 0%, 69%)
CIE-LABlab(8.97, 28.22, -38.88)
CIE-LCHlch(8.97, 48.04, 305.98°)
OKLaboklab(22.79% 0.022 -0.1122)
OKLCHoklch(22.79% 0.114 281.1)
XYZxyz(1.9072, 0.9979, 7.4877)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B4F #424F0B
analogous
#0B204F #180B4F #3A0B4F
triadic
#180B4F #4F180B #0B4F18
tetradic
#180B4F #4F0B20 #424F0B #0B4F3A
square
#180B4F #4F0B20 #424F0B #0B4F3A
split-complementary
#180B4F #4F3A0B #204F0B
monochromatic
#08041B #08041B #180B4F #281285 #391ABA

Accessibility & contrast

On white

17.51
#180B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180B4F
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B4F#FFFFFF#000000##FFFFFF
##180B4F1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#001F2D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #180b4f;
/* rgb */ color: rgb(24, 11, 79);
/* oklch */ color: oklch(22.8% 0.114 281.1);
Tailwind
colors: {
  custom: {
    50: '#5e4c81',
    500: '#180b4f',
    950: '#000000',
  },
}
SCSS
$custom: #180b4f;
$custom-light: #5e4c81;
$custom-dark: #000000;
JSON
{
  "hex": "#180b4f",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 251.471,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22791,
    "c": 0.11433,
    "h": 281.1
  },
  "luminance": 0.00998
}

Semantic roles & 50–950 ramp

primary
#180B4F
secondary
#798B2B
accent
#F236CE
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #180B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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