#180C3F#180C3F

#180C3F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.091 H 286.5°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#180C3F
RGBrgb(24, 12, 63)
HSLhsl(254, 68%, 15%)
HSVhsv(254, 81%, 25%)
CMYKcmyk(61.9%, 81%, 0%, 75.3%)
CIE-LABlab(7.37, 21.98, -30.29)
CIE-LCHlch(7.37, 37.42, 305.97°)
OKLaboklab(21.1% 0.0259 -0.0872)
OKLCHoklch(21.1% 0.091 286.5)
XYZxyz(1.4051, 0.8159, 4.7851)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C3F #333F0C
analogous
#0C193F #180C3F #320C3F
triadic
#180C3F #3F180C #0C3F18
tetradic
#180C3F #3F0C19 #333F0C #0C3F32
square
#180C3F #3F0C19 #333F0C #0C3F32
split-complementary
#180C3F #3F320C #193F0C
monochromatic
#0A051A #0A051A #180C3F #2C1672 #3F20A6

Accessibility & contrast

On white

18.05
#180C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C3F
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C3F#FFFFFF#000000##FFFFFF
##180C3F1.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#081A24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180c3f;
/* rgb */ color: rgb(24, 12, 63);
/* oklch */ color: oklch(21.1% 0.091 286.5);
Tailwind
colors: {
  custom: {
    50: '#5a4c75',
    500: '#180c3f',
    950: '#000000',
  },
}
SCSS
$custom: #180c3f;
$custom-light: #5a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#180c3f",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 254.118,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21099,
    "c": 0.09092,
    "h": 286.5
  },
  "luminance": 0.00816
}

Semantic roles & 50–950 ramp

primary
#180C3F
secondary
#687B2C
accent
#EB3DC2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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