#281F50#281F50

#281F50 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.086 H 287.9°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#281F50
RGBrgb(40, 31, 80)
HSLhsl(251, 44%, 22%)
HSVhsv(251, 61%, 31%)
CMYKcmyk(50%, 61.2%, 0%, 68.6%)
CIE-LABlab(15.54, 18.70, -28.78)
CIE-LCHlch(15.54, 34.32, 303.02°)
OKLaboklab(27.96% 0.0266 -0.082)
OKLCHoklch(27.96% 0.086 287.9)
XYZxyz(2.8126, 2.0102, 7.8277)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F50 #47501F
analogous
#1F2F50 #281F50 #411F50
triadic
#281F50 #50281F #1F5028
tetradic
#281F50 #501F2F #47501F #1F5041
square
#281F50 #501F2F #47501F #1F5041
split-complementary
#281F50 #50411F #2F501F
monochromatic
#0B0916 #120E24 #281F50 #3E307C #5441A8

Accessibility & contrast

On white

14.98
#281F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F50
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F50#FFFFFF#000000##FFFFFF
##281F501.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042852
Deuteranopia (green-blind)
#04264F
Tritanopia (blue-blind)
#1B2A34
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281f50;
/* rgb */ color: rgb(40, 31, 80);
/* oklch */ color: oklch(28.0% 0.086 287.9);
Tailwind
colors: {
  custom: {
    50: '#655b81',
    500: '#281f50',
    950: '#000000',
  },
}
SCSS
$custom: #281f50;
$custom-light: #655b81;
$custom-dark: #000000;
JSON
{
  "hex": "#281f50",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 80
  },
  "hsl": {
    "h": 251.02,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27962,
    "c": 0.08624,
    "h": 287.9
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#281F50
secondary
#798546
accent
#D454BC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #281F50

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

Preview Lab → · Contrast checker → · Palette generator →

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