#180334#180334

#180334 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.090 H 296.7°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#180334
RGBrgb(24, 3, 52)
HSLhsl(266, 89%, 11%)
HSVhsv(266, 94%, 20%)
CMYKcmyk(53.8%, 94.2%, 0%, 79.6%)
CIE-LABlab(4.58, 21.89, -26.82)
CIE-LCHlch(4.58, 34.62, 309.23°)
OKLaboklab(18.33% 0.0402 -0.0801)
OKLCHoklch(18.33% 0.09 296.7)
XYZxyz(1.0289, 0.5072, 3.2918)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180334 #1F3403
analogous
#030734 #180334 #300334
triadic
#180334 #341803 #033418
tetradic
#180334 #340307 #1F3403 #033430
square
#180334 #340307 #1F3403 #033430
split-complementary
#180334 #343003 #073403
monochromatic
#0D021D #0D021D #180334 #33066E #4D0AA8

Accessibility & contrast

On white

19.07
#180334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#180334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180334
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180334#FFFFFF#000000##FFFFFF
##1803341.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001035
Deuteranopia (green-blind)
#000F33
Tritanopia (blue-blind)
#10101B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #180334;
/* rgb */ color: rgb(24, 3, 52);
/* oklch */ color: oklch(18.3% 0.090 296.7);
Tailwind
colors: {
  custom: {
    50: '#58476c',
    500: '#180334',
    950: '#000000',
  },
}
SCSS
$custom: #180334;
$custom-light: #58476c;
$custom-dark: #000000;
JSON
{
  "hex": "#180334",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 265.714,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18327,
    "c": 0.08964,
    "h": 296.7
  },
  "luminance": 0.00507
}

Semantic roles & 50–950 ramp

primary
#180334
secondary
#50771C
accent
#FF29A3
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030007
muted
#78777A

Preview Lab

Preview with #180334

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

Preview Lab → · Contrast checker → · Palette generator →

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