#281F55#281F55

#281F55 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.094 H 286.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#281F55
RGBrgb(40, 31, 85)
HSLhsl(250, 47%, 23%)
HSVhsv(250, 64%, 33%)
CMYKcmyk(52.9%, 63.5%, 0%, 66.7%)
CIE-LABlab(15.94, 20.43, -31.53)
CIE-LCHlch(15.94, 37.57, 302.95°)
OKLaboklab(28.38% 0.0266 -0.0901)
OKLCHoklch(28.38% 0.094 286.4)
XYZxyz(3.0043, 2.0868, 8.8371)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F55 #4C551F
analogous
#1F3155 #281F55 #431F55
triadic
#281F55 #55281F #1F5528
tetradic
#281F55 #551F31 #4C551F #1F5543
square
#281F55 #551F31 #4C551F #1F5543
split-complementary
#281F55 #55431F #31551F
monochromatic
#0B0816 #130F28 #281F55 #3D2F82 #5240AF

Accessibility & contrast

On white

14.82
#281F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F55
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F55#FFFFFF#000000##FFFFFF
##281F551.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#182B36
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281f55;
/* rgb */ color: rgb(40, 31, 85);
/* oklch */ color: oklch(28.4% 0.094 286.4);
Tailwind
colors: {
  custom: {
    50: '#665b85',
    500: '#281f55',
    950: '#000000',
  },
}
SCSS
$custom: #281f55;
$custom-light: #665b85;
$custom-dark: #000000;
JSON
{
  "hex": "#281f55",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 250,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2838,
    "c": 0.09396,
    "h": 286.4
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#281F55
secondary
#7E8A46
accent
#D652C0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281F55

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

Preview Lab → · Contrast checker → · Palette generator →

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