#180638#180638

#180638 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.090 H 292.6°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#180638
RGBrgb(24, 6, 56)
HSLhsl(262, 81%, 12%)
HSVhsv(262, 89%, 22%)
CMYKcmyk(57.1%, 89.3%, 0%, 78%)
CIE-LABlab(5.51, 22.25, -28.26)
CIE-LCHlch(5.51, 35.97, 308.22°)
OKLaboklab(19.34% 0.0345 -0.0827)
OKLCHoklch(19.34% 0.09 292.6)
XYZxyz(1.1554, 0.6099, 3.7975)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180638 #263806
analogous
#060D38 #180638 #310638
triadic
#180638 #381806 #063818
tetradic
#180638 #38060D #263806 #063831
square
#180638 #38060D #263806 #063831
split-complementary
#180638 #383106 #0D3806
monochromatic
#0C031C #0C031C #180638 #300C6F #4712A7

Accessibility & contrast

On white

18.72
#180638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180638
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180638#FFFFFF#000000##FFFFFF
##1806381.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180638;
/* rgb */ color: rgb(24, 6, 56);
/* oklch */ color: oklch(19.3% 0.090 292.6);
Tailwind
colors: {
  custom: {
    50: '#59486f',
    500: '#180638',
    950: '#000000',
  },
}
SCSS
$custom: #180638;
$custom-light: #59486f;
$custom-dark: #000000;
JSON
{
  "hex": "#180638",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 261.6,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19342,
    "c": 0.08958,
    "h": 292.6
  },
  "luminance": 0.0061
}

Semantic roles & 50–950 ramp

primary
#180638
secondary
#597821
accent
#F731B0
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #180638

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

Preview Lab → · Contrast checker → · Palette generator →

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