#180336#180336

#180336 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.092 H 295.3°. Best body text is #FFFFFF at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#180336
RGBrgb(24, 3, 54)
HSLhsl(265, 89%, 11%)
HSVhsv(265, 94%, 21%)
CMYKcmyk(55.6%, 94.4%, 0%, 78.8%)
CIE-LABlab(4.75, 22.80, -28.03)
CIE-LCHlch(4.75, 36.13, 309.13°)
OKLaboklab(18.56% 0.0393 -0.0833)
OKLCHoklch(18.56% 0.092 295.3)
XYZxyz(1.0749, 0.5256, 3.5341)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180336 #213603
analogous
#030736 #180336 #310336
triadic
#180336 #361803 #033618
tetradic
#180336 #360307 #213603 #033631
square
#180336 #360307 #213603 #033631
split-complementary
#180336 #363103 #073603
monochromatic
#0D021D #0D021D #180336 #320670 #4C09AA

Accessibility & contrast

On white

19.00
#180336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#180336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180336
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180336#FFFFFF#000000##FFFFFF
##1803361.0019.001.1119.00
#FFFFFF19.001.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF19.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001137
Deuteranopia (green-blind)
#000F35
Tritanopia (blue-blind)
#0F111C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #180336;
/* rgb */ color: rgb(24, 3, 54);
/* oklch */ color: oklch(18.6% 0.092 295.3);
Tailwind
colors: {
  custom: {
    50: '#58476d',
    500: '#180336',
    950: '#000000',
  },
}
SCSS
$custom: #180336;
$custom-light: #58476d;
$custom-dark: #000000;
JSON
{
  "hex": "#180336",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 264.706,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18562,
    "c": 0.09209,
    "h": 295.3
  },
  "luminance": 0.00526
}

Semantic roles & 50–950 ramp

primary
#180336
secondary
#53791C
accent
#FF29A7
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #180336

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

Preview Lab → · Contrast checker → · Palette generator →

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