#180229#180229

#180229 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.079 H 306.4°. Best body text is #FFFFFF at 19.45:1 contrast (WCAG AA passes).

Color values

HEX#180229
RGBrgb(24, 2, 41)
HSLhsl(274, 91%, 8%)
HSVhsv(274, 95%, 16%)
CMYKcmyk(41.5%, 95.1%, 0%, 83.9%)
CIE-LABlab(3.59, 17.23, -20.13)
CIE-LCHlch(3.59, 26.49, 310.56°)
OKLaboklab(16.88% 0.0467 -0.0633)
OKLCHoklch(16.88% 0.079 306.4)
XYZxyz(0.7985, 0.3977, 2.1321)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180229 #132902
analogous
#040229 #180229 #290226
triadic
#180229 #291802 #022918
tetradic
#180229 #290402 #132902 #022629
square
#180229 #290402 #132902 #022629
split-complementary
#180229 #262902 #022904
monochromatic
#11011D #11011D #180229 #3A0563 #5C089E

Accessibility & contrast

On white

19.45
#180229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#180229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180229
19.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180229#FFFFFF#000000##FFFFFF
##1802291.0019.451.0819.45
#FFFFFF19.451.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2A
Deuteranopia (green-blind)
#000D28
Tritanopia (blue-blind)
#150A14
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #180229;
/* rgb */ color: rgb(24, 2, 41);
/* oklch */ color: oklch(16.9% 0.079 306.4);
Tailwind
colors: {
  custom: {
    50: '#554763',
    500: '#180229',
    950: '#000000',
  },
}
SCSS
$custom: #180229;
$custom-light: #554763;
$custom-dark: #000000;
JSON
{
  "hex": "#180229",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 273.846,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.16875,
    "c": 0.07866,
    "h": 306.4
  },
  "luminance": 0.00398
}

Semantic roles & 50–950 ramp

primary
#180229
secondary
#3E6E19
accent
#FF2986
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #180229

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

Preview Lab → · Contrast checker → · Palette generator →

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