#180335#180335

#180335 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.091 H 296.0°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#180335
RGBrgb(24, 3, 53)
HSLhsl(265, 89%, 11%)
HSVhsv(265, 94%, 21%)
CMYKcmyk(54.7%, 94.3%, 0%, 79.2%)
CIE-LABlab(4.66, 22.35, -27.43)
CIE-LCHlch(4.66, 35.38, 309.18°)
OKLaboklab(18.44% 0.0398 -0.0817)
OKLCHoklch(18.44% 0.091 296)
XYZxyz(1.0517, 0.5163, 3.4117)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180335 #203503
analogous
#030735 #180335 #310335
triadic
#180335 #351803 #033518
tetradic
#180335 #350307 #203503 #033531
square
#180335 #350307 #203503 #033531
split-complementary
#180335 #353103 #073503
monochromatic
#0D021D #0D021D #180335 #32066F #4C0AA9

Accessibility & contrast

On white

19.04
#180335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180335
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180335#FFFFFF#000000##FFFFFF
##1803351.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001036
Deuteranopia (green-blind)
#000F34
Tritanopia (blue-blind)
#10101C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #180335;
/* rgb */ color: rgb(24, 3, 53);
/* oklch */ color: oklch(18.4% 0.091 296.0);
Tailwind
colors: {
  custom: {
    50: '#58476d',
    500: '#180335',
    950: '#000000',
  },
}
SCSS
$custom: #180335;
$custom-light: #58476d;
$custom-dark: #000000;
JSON
{
  "hex": "#180335",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 265.2,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18444,
    "c": 0.09086,
    "h": 296
  },
  "luminance": 0.00516
}

Semantic roles & 50–950 ramp

primary
#180335
secondary
#51781C
accent
#FF29A5
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #180335

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

Preview Lab → · Contrast checker → · Palette generator →

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