#281138#281138

#281138 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.075 H 308.9°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#281138
RGBrgb(40, 17, 56)
HSLhsl(275, 53%, 14%)
HSVhsv(275, 70%, 22%)
CMYKcmyk(28.6%, 69.6%, 0%, 78%)
CIE-LABlab(10.09, 20.56, -20.75)
CIE-LCHlch(10.09, 29.21, 314.73°)
OKLaboklab(23.37% 0.0472 -0.0585)
OKLCHoklch(23.37% 0.075 308.9)
XYZxyz(1.7892, 1.1376, 3.8659)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281138 #213811
analogous
#151138 #281138 #381135
triadic
#281138 #382811 #113828
tetradic
#281138 #381511 #213811 #113538
square
#281138 #381511 #213811 #113538
split-complementary
#281138 #353811 #113815
monochromatic
#110717 #110717 #281138 #4A1F67 #6B2E96

Accessibility & contrast

On white

17.11
#281138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#281138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281138
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281138#FFFFFF#000000##FFFFFF
##2811381.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031B39
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#261822
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #281138;
/* rgb */ color: rgb(40, 17, 56);
/* oklch */ color: oklch(23.4% 0.075 308.9);
Tailwind
colors: {
  custom: {
    50: '#63506f',
    500: '#281138',
    950: '#000000',
  },
}
SCSS
$custom: #281138;
$custom-light: #63506f;
$custom-dark: #000000;
JSON
{
  "hex": "#281138",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 275.385,
    "s": 53.425,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2337,
    "c": 0.07514,
    "h": 308.9
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#281138
secondary
#4D7134
accent
#DD4B87
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #281138

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

Preview Lab → · Contrast checker → · Palette generator →

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