#281B49#281B49

#281B49 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.082 H 293.0°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#281B49
RGBrgb(40, 27, 73)
HSLhsl(257, 46%, 20%)
HSVhsv(257, 63%, 29%)
CMYKcmyk(45.2%, 63%, 0%, 71.4%)
CIE-LABlab(13.92, 19.12, -26.59)
CIE-LCHlch(13.92, 32.75, 305.72°)
OKLaboklab(26.59% 0.0321 -0.0756)
OKLCHoklch(26.59% 0.082 293)
XYZxyz(2.4693, 1.7160, 6.5032)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B49 #3C491B
analogous
#1B2549 #281B49 #3F1B49
triadic
#281B49 #49281B #1B4928
tetradic
#281B49 #491B25 #3C491B #1B493F
square
#281B49 #491B25 #3C491B #1B493F
split-complementary
#281B49 #493F1B #25491B
monochromatic
#0C0816 #100A1C #281B49 #402C76 #593CA2

Accessibility & contrast

On white

15.63
#281B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#281B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B49
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B49#FFFFFF#000000##FFFFFF
##281B491.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04244B
Deuteranopia (green-blind)
#072348
Tritanopia (blue-blind)
#1F252F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281b49;
/* rgb */ color: rgb(40, 27, 73);
/* oklch */ color: oklch(26.6% 0.082 293.0);
Tailwind
colors: {
  custom: {
    50: '#65577c',
    500: '#281b49',
    950: '#000000',
  },
}
SCSS
$custom: #281b49;
$custom-light: #65577c;
$custom-dark: #000000;
JSON
{
  "hex": "#281b49",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 256.957,
    "s": 46,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26593,
    "c": 0.08215,
    "h": 293
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#281B49
secondary
#6D7F41
accent
#D652B0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #281B49

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

Preview Lab → · Contrast checker → · Palette generator →

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