#281C52#281C52

#281C52 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.094 H 288.9°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#281C52
RGBrgb(40, 28, 82)
HSLhsl(253, 49%, 22%)
HSVhsv(253, 66%, 32%)
CMYKcmyk(51.2%, 65.9%, 0%, 67.8%)
CIE-LABlab(14.90, 21.46, -31.17)
CIE-LCHlch(14.90, 37.84, 304.54°)
OKLaboklab(27.54% 0.0305 -0.0891)
OKLCHoklch(27.54% 0.094 288.9)
XYZxyz(2.8129, 1.8907, 8.1977)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C52 #46521C
analogous
#1C2B52 #281C52 #431C52
triadic
#281C52 #52281C #1C5228
tetradic
#281C52 #521C2B #46521C #1C5243
square
#281C52 #521C2B #46521C #1C5243
split-complementary
#281C52 #52431C #2B521C
monochromatic
#0B0817 #120C24 #281C52 #3E2C80 #553BAD

Accessibility & contrast

On white

15.24
#281C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#281C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C52
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C52#FFFFFF#000000##FFFFFF
##281C521.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#1B2834
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281c52;
/* rgb */ color: rgb(40, 28, 82);
/* oklch */ color: oklch(27.5% 0.094 288.9);
Tailwind
colors: {
  custom: {
    50: '#665883',
    500: '#281c52',
    950: '#000000',
  },
}
SCSS
$custom: #281c52;
$custom-light: #665883;
$custom-dark: #000000;
JSON
{
  "hex": "#281c52",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 253.333,
    "s": 49.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27544,
    "c": 0.09416,
    "h": 288.9
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#281C52
secondary
#788842
accent
#D94FBA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281C52

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

Preview Lab → · Contrast checker → · Palette generator →

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