#180538#180538

#180538 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.091 H 293.1°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#180538
RGBrgb(24, 5, 56)
HSLhsl(262, 84%, 12%)
HSVhsv(262, 91%, 22%)
CMYKcmyk(57.1%, 91.1%, 0%, 78%)
CIE-LABlab(5.31, 22.74, -28.58)
CIE-LCHlch(5.31, 36.52, 308.51°)
OKLaboklab(19.17% 0.0357 -0.0839)
OKLCHoklch(19.17% 0.091 293.1)
XYZxyz(1.1446, 0.5882, 3.7938)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180538 #253805
analogous
#050C38 #180538 #320538
triadic
#180538 #381805 #053818
tetradic
#180538 #38050C #253805 #053832
square
#180538 #38050C #253805 #053832
split-complementary
#180538 #383205 #0C3805
monochromatic
#0C031C #0C031C #180538 #300A70 #480FA8

Accessibility & contrast

On white

18.79
#180538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#180538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180538
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180538#FFFFFF#000000##FFFFFF
##1805381.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#0E131E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #180538;
/* rgb */ color: rgb(24, 5, 56);
/* oklch */ color: oklch(19.2% 0.091 293.1);
Tailwind
colors: {
  custom: {
    50: '#59486f',
    500: '#180538',
    950: '#000000',
  },
}
SCSS
$custom: #180538;
$custom-light: #59486f;
$custom-dark: #000000;
JSON
{
  "hex": "#180538",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 262.353,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19165,
    "c": 0.09119,
    "h": 293.1
  },
  "luminance": 0.00588
}

Semantic roles & 50–950 ramp

primary
#180538
secondary
#587920
accent
#FA2EAE
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #180538

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

Preview Lab → · Contrast checker → · Palette generator →

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