#180239#180239

#180239 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.7% C 0.097 H 293.7°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#180239
RGBrgb(24, 2, 57)
HSLhsl(264, 93%, 12%)
HSVhsv(264, 96%, 22%)
CMYKcmyk(57.9%, 96.5%, 0%, 77.6%)
CIE-LABlab(4.81, 24.62, -30.11)
CIE-LCHlch(4.81, 38.90, 309.27°)
OKLaboklab(18.74% 0.0392 -0.0892)
OKLCHoklch(18.74% 0.097 293.7)
XYZxyz(1.1367, 0.5330, 3.9131)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180239 #233902
analogous
#020839 #180239 #340239
triadic
#180239 #391802 #023918
tetradic
#180239 #390208 #233902 #023934
square
#180239 #390208 #233902 #023934
split-complementary
#180239 #393402 #083902
monochromatic
#0C011E #0C011E #180239 #310474 #4A06AF

Accessibility & contrast

On white

18.98
#180239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180239
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180239#FFFFFF#000000##FFFFFF
##1802391.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113A
Deuteranopia (green-blind)
#000F38
Tritanopia (blue-blind)
#0D121E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #180239;
/* rgb */ color: rgb(24, 2, 57);
/* oklch */ color: oklch(18.7% 0.097 293.7);
Tailwind
colors: {
  custom: {
    50: '#594670',
    500: '#180239',
    950: '#000000',
  },
}
SCSS
$custom: #180239;
$custom-light: #594670;
$custom-dark: #000000;
JSON
{
  "hex": "#180239",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 264,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18737,
    "c": 0.09747,
    "h": 293.7
  },
  "luminance": 0.00533
}

Semantic roles & 50–950 ramp

primary
#180239
secondary
#557D1A
accent
#FF29A9
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#040007
muted
#79777A

Preview Lab

Preview with #180239

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

Preview Lab → · Contrast checker → · Palette generator →

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