#281B5D#281B5D

#281B5D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.112 H 285.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#281B5D
RGBrgb(40, 27, 93)
HSLhsl(252, 55%, 24%)
HSVhsv(252, 71%, 36%)
CMYKcmyk(57%, 71%, 0%, 63.5%)
CIE-LABlab(15.62, 25.87, -37.41)
CIE-LCHlch(15.62, 45.49, 304.66°)
OKLaboklab(28.37% 0.0306 -0.1074)
OKLCHoklch(28.37% 0.112 285.9)
XYZxyz(3.2422, 2.0251, 10.5739)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B5D #505D1B
analogous
#1B2F5D #281B5D #491B5D
triadic
#281B5D #5D281B #1B5D28
tetradic
#281B5D #5D1B2F #505D1B #1B5D49
square
#281B5D #5D1B2F #505D1B #1B5D49
split-complementary
#281B5D #5D491B #2F5D1B
monochromatic
#0A0718 #140D2E #281B5D #3C298C #5137BC

Accessibility & contrast

On white

14.95
#281B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281B5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B5D
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B5D#FFFFFF#000000##FFFFFF
##281B5D1.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#122C39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281b5d;
/* rgb */ color: rgb(40, 27, 93);
/* oklch */ color: oklch(28.4% 0.112 285.9);
Tailwind
colors: {
  custom: {
    50: '#68588c',
    500: '#281b5d',
    950: '#000000',
  },
}
SCSS
$custom: #281b5d;
$custom-light: #68588c;
$custom-dark: #000000;
JSON
{
  "hex": "#281b5d",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 251.818,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28366,
    "c": 0.11171,
    "h": 285.9
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#281B5D
secondary
#839341
accent
#DE49C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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