#281B58#281B58

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

Color values

HEX#281B58
RGBrgb(40, 27, 88)
HSLhsl(253, 53%, 23%)
HSVhsv(253, 69%, 35%)
CMYKcmyk(54.5%, 69.3%, 0%, 65.5%)
CIE-LABlab(15.17, 24.17, -34.80)
CIE-LCHlch(15.17, 42.37, 304.78°)
OKLaboklab(27.9% 0.0312 -0.0998)
OKLCHoklch(27.9% 0.105 287.4)
XYZxyz(3.0279, 1.9394, 9.4454)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B58 #4B581B
analogous
#1B2C58 #281B58 #461B58
triadic
#281B58 #58281B #1B5828
tetradic
#281B58 #581B2C #4B581B #1B5846
square
#281B58 #581B2C #4B581B #1B5846
split-complementary
#281B58 #58461B #2C581B
monochromatic
#0B0717 #130D29 #281B58 #3D2987 #5338B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##281B58#FFFFFF#000000##FFFFFF
##281B581.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)
#00275A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#172A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281b58;
/* rgb */ color: rgb(40, 27, 88);
/* oklch */ color: oklch(27.9% 0.105 287.4);
Tailwind
colors: {
  custom: {
    50: '#675888',
    500: '#281b58',
    950: '#000000',
  },
}
SCSS
$custom: #281b58;
$custom-light: #675888;
$custom-dark: #000000;
JSON
{
  "hex": "#281b58",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 252.787,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27898,
    "c": 0.10454,
    "h": 287.4
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#281B58
secondary
#7D8E41
accent
#DC4BBE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281B58

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

Preview Lab → · Contrast checker → · Palette generator →

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