#281F4B#281F4B

#281F4B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.078 H 289.7°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#281F4B
RGBrgb(40, 31, 75)
HSLhsl(252, 42%, 21%)
HSVhsv(252, 59%, 29%)
CMYKcmyk(46.7%, 58.7%, 0%, 70.6%)
CIE-LABlab(15.16, 16.99, -25.97)
CIE-LCHlch(15.16, 31.04, 303.20°)
OKLaboklab(27.56% 0.0264 -0.0738)
OKLCHoklch(27.56% 0.078 289.7)
XYZxyz(2.6347, 1.9390, 6.8907)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F4B #424B1F
analogous
#1F2C4B #281F4B #3E1F4B
triadic
#281F4B #4B281F #1F4B28
tetradic
#281F4B #4B1F2C #424B1F #1F4B3E
square
#281F4B #4B1F2C #424B1F #1F4B3E
split-complementary
#281F4B #4B3E1F #2C4B1F
monochromatic
#0C0916 #110D20 #281F4B #3F3176 #5643A2

Accessibility & contrast

On white

15.13
#281F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F4B
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F4B#FFFFFF#000000##FFFFFF
##281F4B1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B274D
Deuteranopia (green-blind)
#0C254A
Tritanopia (blue-blind)
#1E2831
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281f4b;
/* rgb */ color: rgb(40, 31, 75);
/* oklch */ color: oklch(27.6% 0.078 289.7);
Tailwind
colors: {
  custom: {
    50: '#655a7d',
    500: '#281f4b',
    950: '#000000',
  },
}
SCSS
$custom: #281f4b;
$custom-light: #655a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#281f4b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 252.273,
    "s": 41.509,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27562,
    "c": 0.07835,
    "h": 289.7
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#281F4B
secondary
#748046
accent
#D156B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #281F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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