#28232F#28232F

#28232F is a dark, muted violet. Relative luminance 0.019; OKLCH L 26.7% C 0.023 H 303.8°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#28232F
RGBrgb(40, 35, 47)
HSLhsl(265, 15%, 16%)
HSVhsv(265, 26%, 18%)
CMYKcmyk(14.9%, 25.5%, 0%, 81.6%)
CIE-LABlab(14.73, 5.35, -7.04)
CIE-LCHlch(14.73, 8.84, 307.21°)
OKLaboklab(26.69% 0.0128 -0.0191)
OKLCHoklch(26.69% 0.023 303.8)
XYZxyz(1.9891, 1.8584, 2.9427)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28232F #2A2F23
analogous
#23242F #28232F #2E232F
triadic
#28232F #2F2823 #232F28
tetradic
#28232F #2F2324 #2A2F23 #232F2E
square
#28232F #2F2324 #2A2F23 #232F2E
split-complementary
#28232F #2F2E23 #242F23
monochromatic
#0F0D12 #0F0D12 #28232F #463D52 #645775

Accessibility & contrast

On white

15.31
#28232F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28232F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28232F
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28232F#FFFFFF#000000##FFFFFF
##28232F1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212530
Deuteranopia (green-blind)
#22252F
Tritanopia (blue-blind)
#272527
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28232f;
/* rgb */ color: rgb(40, 35, 47);
/* oklch */ color: oklch(26.7% 0.023 303.8);
Tailwind
colors: {
  custom: {
    50: '#625d67',
    500: '#28232f',
    950: '#000000',
  },
}
SCSS
$custom: #28232f;
$custom-light: #625d67;
$custom-dark: #000000;
JSON
{
  "hex": "#28232f",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 47
  },
  "hsl": {
    "h": 265,
    "s": 14.634,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26693,
    "c": 0.02306,
    "h": 303.8
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#28232F
secondary
#58604E
accent
#B7709A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #28232F

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

Preview Lab → · Contrast checker → · Palette generator →

#28232F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva