#180338#180338

#180338 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.8% C 0.095 H 294.0°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#180338
RGBrgb(24, 3, 56)
HSLhsl(264, 90%, 12%)
HSVhsv(264, 95%, 22%)
CMYKcmyk(57.1%, 94.6%, 0%, 78%)
CIE-LABlab(4.92, 23.70, -29.21)
CIE-LCHlch(4.92, 37.62, 309.05°)
OKLaboklab(18.8% 0.0384 -0.0864)
OKLCHoklch(18.8% 0.095 294)
XYZxyz(1.1229, 0.5448, 3.7866)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180338 #233803
analogous
#030838 #180338 #330338
triadic
#180338 #381803 #033818
tetradic
#180338 #380308 #233803 #033833
square
#180338 #380308 #233803 #033833
split-complementary
#180338 #383303 #083803
monochromatic
#0C021D #0C021D #180338 #310672 #4A09AC

Accessibility & contrast

On white

18.94
#180338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180338
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180338#FFFFFF#000000##FFFFFF
##1803381.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001139
Deuteranopia (green-blind)
#001037
Tritanopia (blue-blind)
#0E121E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #180338;
/* rgb */ color: rgb(24, 3, 56);
/* oklch */ color: oklch(18.8% 0.095 294.0);
Tailwind
colors: {
  custom: {
    50: '#59476f',
    500: '#180338',
    950: '#000000',
  },
}
SCSS
$custom: #180338;
$custom-light: #59476f;
$custom-dark: #000000;
JSON
{
  "hex": "#180338",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 263.774,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18801,
    "c": 0.09454,
    "h": 294
  },
  "luminance": 0.00545
}

Semantic roles & 50–950 ramp

primary
#180338
secondary
#557B1C
accent
#FF29AA
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #180338

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

Preview Lab → · Contrast checker → · Palette generator →

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