#281F4F#281F4F

#281F4F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.085 H 288.3°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#281F4F
RGBrgb(40, 31, 79)
HSLhsl(251, 44%, 22%)
HSVhsv(251, 61%, 31%)
CMYKcmyk(49.4%, 60.8%, 0%, 69%)
CIE-LABlab(15.46, 18.36, -28.22)
CIE-LCHlch(15.46, 33.67, 303.04°)
OKLaboklab(27.88% 0.0266 -0.0804)
OKLCHoklch(27.88% 0.085 288.3)
XYZxyz(2.7759, 1.9955, 7.6345)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F4F #464F1F
analogous
#1F2E4F #281F4F #401F4F
triadic
#281F4F #4F281F #1F4F28
tetradic
#281F4F #4F1F2E #464F1F #1F4F40
square
#281F4F #4F1F2E #464F1F #1F4F40
split-complementary
#281F4F #4F401F #2E4F1F
monochromatic
#0B0916 #120E23 #281F4F #3E307B #5541A7

Accessibility & contrast

On white

15.01
#281F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F4F
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F4F#FFFFFF#000000##FFFFFF
##281F4F1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052851
Deuteranopia (green-blind)
#06254E
Tritanopia (blue-blind)
#1C2933
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281f4f;
/* rgb */ color: rgb(40, 31, 79);
/* oklch */ color: oklch(27.9% 0.085 288.3);
Tailwind
colors: {
  custom: {
    50: '#655b81',
    500: '#281f4f',
    950: '#000000',
  },
}
SCSS
$custom: #281f4f;
$custom-light: #655b81;
$custom-dark: #000000;
JSON
{
  "hex": "#281f4f",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 251.25,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27881,
    "c": 0.08468,
    "h": 288.3
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#281F4F
secondary
#788446
accent
#D354BC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #281F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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