#180B3F#180B3F

#180B3F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.092 H 286.9°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#180B3F
RGBrgb(24, 11, 63)
HSLhsl(255, 70%, 15%)
HSVhsv(255, 83%, 25%)
CMYKcmyk(61.9%, 82.5%, 0%, 75.3%)
CIE-LABlab(7.16, 22.56, -30.63)
CIE-LCHlch(7.16, 38.04, 306.36°)
OKLaboklab(20.94% 0.0269 -0.0883)
OKLCHoklch(20.94% 0.092 286.9)
XYZxyz(1.3933, 0.7923, 4.7812)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B3F #323F0B
analogous
#0B183F #180B3F #320B3F
triadic
#180B3F #3F180B #0B3F18
tetradic
#180B3F #3F0B18 #323F0B #0B3F32
square
#180B3F #3F0B18 #323F0B #0B3F32
split-complementary
#180B3F #3F320B #183F0B
monochromatic
#0A051A #0A051A #180B3F #2C1473 #401DA7

Accessibility & contrast

On white

18.13
#180B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B3F
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B3F#FFFFFF#000000##FFFFFF
##180B3F1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#081924
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180b3f;
/* rgb */ color: rgb(24, 11, 63);
/* oklch */ color: oklch(20.9% 0.092 286.9);
Tailwind
colors: {
  custom: {
    50: '#5a4b75',
    500: '#180b3f',
    950: '#000000',
  },
}
SCSS
$custom: #180b3f;
$custom-light: #5a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#180b3f",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 63
  },
  "hsl": {
    "h": 255,
    "s": 70.27,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20938,
    "c": 0.09226,
    "h": 286.9
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#180B3F
secondary
#677C2A
accent
#ED3BC0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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