#281F4E#281F4E

#281F4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.083 H 288.6°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#281F4E
RGBrgb(40, 31, 78)
HSLhsl(251, 43%, 21%)
HSVhsv(251, 60%, 31%)
CMYKcmyk(48.7%, 60.3%, 0%, 69.4%)
CIE-LABlab(15.39, 18.02, -27.66)
CIE-LCHlch(15.39, 33.02, 303.08°)
OKLaboklab(27.8% 0.0265 -0.0788)
OKLCHoklch(27.8% 0.083 288.6)
XYZxyz(2.7398, 1.9810, 7.4443)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F4E #454E1F
analogous
#1F2E4E #281F4E #401F4E
triadic
#281F4E #4E281F #1F4E28
tetradic
#281F4E #4E1F2E #454E1F #1F4E40
square
#281F4E #4E1F2E #454E1F #1F4E40
split-complementary
#281F4E #4E401F #2E4E1F
monochromatic
#0B0916 #120E22 #281F4E #3E307A #5542A6

Accessibility & contrast

On white

15.04
#281F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F4E
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F4E#FFFFFF#000000##FFFFFF
##281F4E1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072850
Deuteranopia (green-blind)
#07254D
Tritanopia (blue-blind)
#1D2933
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281f4e;
/* rgb */ color: rgb(40, 31, 78);
/* oklch */ color: oklch(27.8% 0.083 288.6);
Tailwind
colors: {
  custom: {
    50: '#655b80',
    500: '#281f4e',
    950: '#000000',
  },
}
SCSS
$custom: #281f4e;
$custom-light: #655b80;
$custom-dark: #000000;
JSON
{
  "hex": "#281f4e",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 251.489,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.278,
    "c": 0.08311,
    "h": 288.6
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#281F4E
secondary
#778346
accent
#D355BB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #281F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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