#281950#281950

#281950 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.096 H 291.1°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#281950
RGBrgb(40, 25, 80)
HSLhsl(256, 52%, 21%)
HSVhsv(256, 69%, 31%)
CMYKcmyk(50%, 68.8%, 0%, 68.6%)
CIE-LABlab(13.98, 22.80, -31.31)
CIE-LCHlch(13.98, 38.73, 306.06°)
OKLaboklab(26.81% 0.0345 -0.0895)
OKLCHoklch(26.81% 0.096 291.1)
XYZxyz(2.6703, 1.7255, 7.7802)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281950 #415019
analogous
#192550 #281950 #431950
triadic
#281950 #502819 #195028
tetradic
#281950 #501925 #415019 #195043
square
#281950 #501925 #415019 #195043
split-complementary
#281950 #504319 #255019
monochromatic
#0C0717 #110A21 #281950 #3F287F #5736AD

Accessibility & contrast

On white

15.61
#281950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281950
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281950#FFFFFF#000000##FFFFFF
##2819501.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#1C2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281950;
/* rgb */ color: rgb(40, 25, 80);
/* oklch */ color: oklch(26.8% 0.096 291.1);
Tailwind
colors: {
  custom: {
    50: '#665682',
    500: '#281950',
    950: '#000000',
  },
}
SCSS
$custom: #281950;
$custom-light: #665682;
$custom-dark: #000000;
JSON
{
  "hex": "#281950",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 256.364,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26814,
    "c": 0.09592,
    "h": 291.1
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#281950
secondary
#73863E
accent
#DC4CB5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281950

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

Preview Lab → · Contrast checker → · Palette generator →

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