#281F4D#281F4D

#281F4D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.7% C 0.082 H 289.0°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#281F4D
RGBrgb(40, 31, 77)
HSLhsl(252, 43%, 21%)
HSVhsv(252, 60%, 30%)
CMYKcmyk(48.1%, 59.7%, 0%, 69.8%)
CIE-LABlab(15.31, 17.67, -27.10)
CIE-LCHlch(15.31, 32.36, 303.11°)
OKLaboklab(27.72% 0.0265 -0.0771)
OKLCHoklch(27.72% 0.082 289)
XYZxyz(2.7042, 1.9668, 7.2569)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F4D #444D1F
analogous
#1F2D4D #281F4D #3F1F4D
triadic
#281F4D #4D281F #1F4D28
tetradic
#281F4D #4D1F2D #444D1F #1F4D3F
square
#281F4D #4D1F2D #444D1F #1F4D3F
split-complementary
#281F4D #4D3F1F #2D4D1F
monochromatic
#0B0916 #110D21 #281F4D #3F3179 #5542A4

Accessibility & contrast

On white

15.07
#281F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F4D
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F4D#FFFFFF#000000##FFFFFF
##281F4D1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274F
Deuteranopia (green-blind)
#09254C
Tritanopia (blue-blind)
#1D2932
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281f4d;
/* rgb */ color: rgb(40, 31, 77);
/* oklch */ color: oklch(27.7% 0.082 289.0);
Tailwind
colors: {
  custom: {
    50: '#655a7f',
    500: '#281f4d',
    950: '#000000',
  },
}
SCSS
$custom: #281f4d;
$custom-light: #655a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#281f4d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 251.739,
    "s": 42.593,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2772,
    "c": 0.08153,
    "h": 289
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#281F4D
secondary
#768246
accent
#D255BA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #281F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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