#281C49#281C49

#281C49 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.8% C 0.080 H 292.4°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#281C49
RGBrgb(40, 28, 73)
HSLhsl(256, 45%, 20%)
HSVhsv(256, 62%, 29%)
CMYKcmyk(45.2%, 61.6%, 0%, 71.4%)
CIE-LABlab(14.19, 18.43, -26.16)
CIE-LCHlch(14.19, 32.00, 305.16°)
OKLaboklab(26.79% 0.0307 -0.0743)
OKLCHoklch(26.79% 0.08 292.4)
XYZxyz(2.4926, 1.7626, 6.5109)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C49 #3D491C
analogous
#1C2749 #281C49 #3F1C49
triadic
#281C49 #49281C #1C4928
tetradic
#281C49 #491C27 #3D491C #1C493F
square
#281C49 #491C27 #3D491C #1C493F
split-complementary
#281C49 #493F1C #27491C
monochromatic
#0C0816 #100B1D #281C49 #402D75 #583EA1

Accessibility & contrast

On white

15.53
#281C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#281C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C49
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C49#FFFFFF#000000##FFFFFF
##281C491.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06254B
Deuteranopia (green-blind)
#092348
Tritanopia (blue-blind)
#1F262F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281c49;
/* rgb */ color: rgb(40, 28, 73);
/* oklch */ color: oklch(26.8% 0.080 292.4);
Tailwind
colors: {
  custom: {
    50: '#65587c',
    500: '#281c49',
    950: '#000000',
  },
}
SCSS
$custom: #281c49;
$custom-light: #65587c;
$custom-dark: #000000;
JSON
{
  "hex": "#281c49",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 73
  },
  "hsl": {
    "h": 256,
    "s": 44.554,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26791,
    "c": 0.08042,
    "h": 292.4
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#281C49
secondary
#6E7E42
accent
#D454B2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #281C49

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

Preview Lab → · Contrast checker → · Palette generator →

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