#240628#240628

#240628 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.7% C 0.073 H 322.9°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#240628
RGBrgb(36, 6, 40)
HSLhsl(293, 74%, 9%)
HSVhsv(293, 85%, 16%)
CMYKcmyk(10%, 85%, 0%, 84.3%)
CIE-LABlab(5.95, 21.02, -15.56)
CIE-LCHlch(5.95, 26.15, 323.50°)
OKLaboklab(19.7% 0.0586 -0.0444)
OKLCHoklch(19.7% 0.073 322.9)
XYZxyz(1.1756, 0.6586, 2.0723)
Luminance0.0066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240628 #0A2806
analogous
#130628 #240628 #28061B
triadic
#240628 #282406 #062824
tetradic
#240628 #281306 #0A2806 #061B28
square
#240628 #281306 #0A2806 #061B28
split-complementary
#240628 #1B2806 #062813
monochromatic
#18041B #18041B #240628 #540E5D #841692

Accessibility & contrast

On white

18.55
#240628 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#240628 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240628
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240628#FFFFFF#000000##FFFFFF
##2406281.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011129
Deuteranopia (green-blind)
#0B1427
Tritanopia (blue-blind)
#250B16
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #240628;
/* rgb */ color: rgb(36, 6, 40);
/* oklch */ color: oklch(19.7% 0.073 322.9);
Tailwind
colors: {
  custom: {
    50: '#604962',
    500: '#240628',
    950: '#000000',
  },
}
SCSS
$custom: #240628;
$custom-light: #604962;
$custom-dark: #000000;
JSON
{
  "hex": "#240628",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 40
  },
  "hsl": {
    "h": 292.941,
    "s": 73.913,
    "l": 9.02
  },
  "oklch": {
    "l": 0.19696,
    "c": 0.07348,
    "h": 322.9
  },
  "luminance": 0.00659
}

Semantic roles & 50–950 ramp

primary
#240628
secondary
#2A6921
accent
#F1374D
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240628

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

Preview Lab → · Contrast checker → · Palette generator →

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