#281C56#281C56

#281C56 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.100 H 287.6°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#281C56
RGBrgb(40, 28, 86)
HSLhsl(252, 51%, 22%)
HSVhsv(252, 67%, 34%)
CMYKcmyk(53.5%, 67.4%, 0%, 66.3%)
CIE-LABlab(15.24, 22.82, -33.33)
CIE-LCHlch(15.24, 40.40, 304.40°)
OKLaboklab(27.9% 0.0303 -0.0954)
OKLCHoklch(27.9% 0.1 287.6)
XYZxyz(2.9696, 1.9534, 9.0229)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C56 #4A561C
analogous
#1C2D56 #281C56 #451C56
triadic
#281C56 #56281C #1C5628
tetradic
#281C56 #561C2D #4A561C #1C5645
square
#281C56 #561C2D #4A561C #1C5645
split-complementary
#281C56 #56451C #2D561C
monochromatic
#0B0817 #130D28 #281C56 #3D2B84 #533AB2

Accessibility & contrast

On white

15.10
#281C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C56
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C56#FFFFFF#000000##FFFFFF
##281C561.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#182A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281c56;
/* rgb */ color: rgb(40, 28, 86);
/* oklch */ color: oklch(27.9% 0.100 287.6);
Tailwind
colors: {
  custom: {
    50: '#675986',
    500: '#281c56',
    950: '#000000',
  },
}
SCSS
$custom: #281c56;
$custom-light: #675986;
$custom-dark: #000000;
JSON
{
  "hex": "#281c56",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 252.414,
    "s": 50.877,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27897,
    "c": 0.10012,
    "h": 287.6
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#281C56
secondary
#7C8C42
accent
#DA4DBD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281C56

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

Preview Lab → · Contrast checker → · Palette generator →

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