#240228#240228

#240228 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.0% C 0.083 H 323.6°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#240228
RGBrgb(36, 2, 40)
HSLhsl(294, 90%, 8%)
HSVhsv(294, 95%, 16%)
CMYKcmyk(10%, 95%, 0%, 84.3%)
CIE-LABlab(5.17, 22.96, -16.78)
CIE-LCHlch(5.17, 28.44, 323.84°)
OKLaboklab(18.98% 0.0664 -0.049)
OKLCHoklch(18.98% 0.083 323.6)
XYZxyz(1.1322, 0.5718, 2.0578)
Luminance0.0057 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240228 #062802
analogous
#110228 #240228 #280219
triadic
#240228 #282402 #022824
tetradic
#240228 #281102 #062802 #021928
square
#240228 #281102 #062802 #021928
split-complementary
#240228 #192802 #022811
monochromatic
#1A011D #1A011D #240228 #580562 #8D089D

Accessibility & contrast

On white

18.84
#240228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240228
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240228#FFFFFF#000000##FFFFFF
##2402281.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F29
Deuteranopia (green-blind)
#071327
Tritanopia (blue-blind)
#250814
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #240228;
/* rgb */ color: rgb(36, 2, 40);
/* oklch */ color: oklch(19.0% 0.083 323.6);
Tailwind
colors: {
  custom: {
    50: '#604762',
    500: '#240228',
    950: '#000000',
  },
}
SCSS
$custom: #240228;
$custom-light: #604762;
$custom-dark: #000000;
JSON
{
  "hex": "#240228",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 293.684,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.18984,
    "c": 0.0825,
    "h": 323.6
  },
  "luminance": 0.00572
}

Semantic roles & 50–950 ramp

primary
#240228
secondary
#216D19
accent
#FF293F
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#050005
muted
#797779

Preview Lab

Preview with #240228

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

Preview Lab → · Contrast checker → · Palette generator →

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