#281838#281838

#281838 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.7% C 0.062 H 305.4°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#281838
RGBrgb(40, 24, 56)
HSLhsl(270, 40%, 16%)
HSVhsv(270, 57%, 22%)
CMYKcmyk(28.6%, 57.1%, 0%, 78%)
CIE-LABlab(11.89, 15.85, -17.89)
CIE-LCHlch(11.89, 23.90, 311.54°)
OKLaboklab(24.7% 0.0357 -0.0501)
OKLCHoklch(24.7% 0.062 305.4)
XYZxyz(1.9154, 1.3899, 3.9080)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281838 #283818
analogous
#181838 #281838 #381838
triadic
#281838 #382818 #183828
tetradic
#281838 #381818 #283818 #183838
square
#281838 #381818 #283818 #183838
split-complementary
#281838 #383818 #183818
monochromatic
#0F0915 #0F0915 #281838 #472A63 #653D8E

Accessibility & contrast

On white

16.43
#281838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#281838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281838
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281838#FFFFFF#000000##FFFFFF
##2818381.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1F39
Deuteranopia (green-blind)
#131F37
Tritanopia (blue-blind)
#251E25
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #281838;
/* rgb */ color: rgb(40, 24, 56);
/* oklch */ color: oklch(24.7% 0.062 305.4);
Tailwind
colors: {
  custom: {
    50: '#63556f',
    500: '#281838',
    950: '#000000',
  },
}
SCSS
$custom: #281838;
$custom-light: #63556f;
$custom-dark: #000000;
JSON
{
  "hex": "#281838",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 270,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24697,
    "c": 0.06151,
    "h": 305.4
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#281838
secondary
#566E3E
accent
#D05894
background
#F5F4F6
surface
#EAE8EC
border
#C6C4C7
text
#050307
muted
#79787A

Preview Lab

Preview with #281838

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

Preview Lab → · Contrast checker → · Palette generator →

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