#281E38#281E38

#281E38 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.0% C 0.049 H 300.8°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#281E38
RGBrgb(40, 30, 56)
HSLhsl(263, 30%, 17%)
HSVhsv(263, 46%, 22%)
CMYKcmyk(28.6%, 46.4%, 0%, 78%)
CIE-LABlab(13.62, 11.57, -15.16)
CIE-LCHlch(13.62, 19.07, 307.35°)
OKLaboklab(26% 0.0251 -0.0422)
OKLCHoklch(26% 0.049 300.8)
XYZxyz(2.0530, 1.6652, 3.9539)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E38 #2E381E
analogous
#1E2138 #281E38 #351E38
triadic
#281E38 #38281E #1E3828
tetradic
#281E38 #381E21 #2E381E #1E3835
square
#281E38 #381E21 #2E381E #1E3835
split-complementary
#281E38 #38351E #21381E
monochromatic
#0E0B14 #0E0B14 #281E38 #443360 #614988

Accessibility & contrast

On white

15.75
#281E38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281E38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E38
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E38#FFFFFF#000000##FFFFFF
##281E381.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172339
Deuteranopia (green-blind)
#192337
Tritanopia (blue-blind)
#252228
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281e38;
/* rgb */ color: rgb(40, 30, 56);
/* oklch */ color: oklch(26.0% 0.049 300.8);
Tailwind
colors: {
  custom: {
    50: '#62596e',
    500: '#281e38',
    950: '#000000',
  },
}
SCSS
$custom: #281e38;
$custom-light: #62596e;
$custom-dark: #000000;
JSON
{
  "hex": "#281e38",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 56
  },
  "hsl": {
    "h": 263.077,
    "s": 30.233,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25998,
    "c": 0.04912,
    "h": 300.8
  },
  "luminance": 0.01665
}

Semantic roles & 50–950 ramp

primary
#281E38
secondary
#5D6C46
accent
#C661A0
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050307
muted
#79787A

Preview Lab

Preview with #281E38

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

Preview Lab → · Contrast checker → · Palette generator →

#281E38 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva