#281C55#281C55

#281C55 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.099 H 287.9°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#281C55
RGBrgb(40, 28, 85)
HSLhsl(253, 50%, 22%)
HSVhsv(253, 67%, 33%)
CMYKcmyk(52.9%, 67.1%, 0%, 66.7%)
CIE-LABlab(15.16, 22.48, -32.80)
CIE-LCHlch(15.16, 39.76, 304.43°)
OKLaboklab(27.81% 0.0303 -0.0939)
OKLCHoklch(27.81% 0.099 287.9)
XYZxyz(2.9295, 1.9374, 8.8122)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C55 #49551C
analogous
#1C2C55 #281C55 #451C55
triadic
#281C55 #55281C #1C5528
tetradic
#281C55 #551C2C #49551C #1C5545
square
#281C55 #551C2C #49551C #1C5545
split-complementary
#281C55 #55451C #2C551C
monochromatic
#0B0817 #120D27 #281C55 #3E2B83 #533AB1

Accessibility & contrast

On white

15.13
#281C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C55
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C55#FFFFFF#000000##FFFFFF
##281C551.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#192935
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281c55;
/* rgb */ color: rgb(40, 28, 85);
/* oklch */ color: oklch(27.8% 0.099 287.9);
Tailwind
colors: {
  custom: {
    50: '#665985',
    500: '#281c55',
    950: '#000000',
  },
}
SCSS
$custom: #281c55;
$custom-light: #665985;
$custom-dark: #000000;
JSON
{
  "hex": "#281c55",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 252.632,
    "s": 50.442,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27808,
    "c": 0.09864,
    "h": 287.9
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#281C55
secondary
#7B8B42
accent
#DA4EBC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281C55

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

Preview Lab → · Contrast checker → · Palette generator →

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