#281F44#281F44

#281F44 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.067 H 292.5°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#281F44
RGBrgb(40, 31, 68)
HSLhsl(255, 37%, 19%)
HSVhsv(255, 54%, 27%)
CMYKcmyk(41.2%, 54.4%, 0%, 73.3%)
CIE-LABlab(14.67, 14.65, -21.93)
CIE-LCHlch(14.67, 26.37, 303.76°)
OKLaboklab(27.03% 0.0257 -0.0619)
OKLCHoklch(27.03% 0.067 292.5)
XYZxyz(2.4082, 1.8484, 5.6976)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F44 #3B441F
analogous
#1F2944 #281F44 #3B1F44
triadic
#281F44 #44281F #1F4428
tetradic
#281F44 #441F29 #3B441F #1F443B
square
#281F44 #441F29 #3B441F #1F443B
split-complementary
#281F44 #443B1F #29441F
monochromatic
#0C0A15 #0F0C1A #281F44 #41326E #594598

Accessibility & contrast

On white

15.33
#281F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281F44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F44
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F44#FFFFFF#000000##FFFFFF
##281F441.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112645
Deuteranopia (green-blind)
#132443
Tritanopia (blue-blind)
#21262E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281f44;
/* rgb */ color: rgb(40, 31, 68);
/* oklch */ color: oklch(27.0% 0.067 292.5);
Tailwind
colors: {
  custom: {
    50: '#645a78',
    500: '#281f44',
    950: '#000000',
  },
}
SCSS
$custom: #281f44;
$custom-light: #645a78;
$custom-dark: #000000;
JSON
{
  "hex": "#281f44",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 68
  },
  "hsl": {
    "h": 254.595,
    "s": 37.374,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27034,
    "c": 0.06704,
    "h": 292.5
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#281F44
secondary
#6C7846
accent
#CD5AB1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #281F44

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

Preview Lab → · Contrast checker → · Palette generator →

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