#281E3C#281E3C

#281E3C is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.3% C 0.056 H 297.8°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#281E3C
RGBrgb(40, 30, 60)
HSLhsl(260, 33%, 18%)
HSVhsv(260, 50%, 24%)
CMYKcmyk(33.3%, 50%, 0%, 76.5%)
CIE-LABlab(13.86, 12.80, -17.61)
CIE-LCHlch(13.86, 21.77, 306.01°)
OKLaboklab(26.26% 0.026 -0.0493)
OKLCHoklch(26.26% 0.056 297.8)
XYZxyz(2.1548, 1.7059, 4.4898)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E3C #323C1E
analogous
#1E233C #281E3C #371E3C
triadic
#281E3C #3C281E #1E3C28
tetradic
#281E3C #3C1E23 #323C1E #1E3C37
square
#281E3C #3C1E23 #323C1E #1E3C37
split-complementary
#281E3C #3C371E #233C1E
monochromatic
#0E0A14 #0E0A14 #281E3C #433265 #5E478E

Accessibility & contrast

On white

15.66
#281E3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281E3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E3C
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E3C#FFFFFF#000000##FFFFFF
##281E3C1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15233D
Deuteranopia (green-blind)
#17233B
Tritanopia (blue-blind)
#24232A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281e3c;
/* rgb */ color: rgb(40, 30, 60);
/* oklch */ color: oklch(26.3% 0.056 297.8);
Tailwind
colors: {
  custom: {
    50: '#635972',
    500: '#281e3c',
    950: '#000000',
  },
}
SCSS
$custom: #281e3c;
$custom-light: #635972;
$custom-dark: #000000;
JSON
{
  "hex": "#281e3c",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 60
  },
  "hsl": {
    "h": 260,
    "s": 33.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26257,
    "c": 0.05577,
    "h": 297.8
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#281E3C
secondary
#627046
accent
#C95EA6
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050308
muted
#79787B

Preview Lab

Preview with #281E3C

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

Preview Lab → · Contrast checker → · Palette generator →

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