#281C60#281C60

#281C60 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.115 H 284.7°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#281C60
RGBrgb(40, 28, 96)
HSLhsl(251, 55%, 24%)
HSVhsv(251, 71%, 38%)
CMYKcmyk(58.3%, 70.8%, 0%, 62.4%)
CIE-LABlab(16.14, 26.25, -38.57)
CIE-LCHlch(16.14, 46.65, 304.24°)
OKLaboklab(28.83% 0.0291 -0.1108)
OKLCHoklch(28.83% 0.115 284.7)
XYZxyz(3.4010, 2.1260, 11.2952)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C60 #54601C
analogous
#1C3260 #281C60 #4A1C60
triadic
#281C60 #60281C #1C6028
tetradic
#281C60 #601C32 #54601C #1C604A
square
#281C60 #601C32 #54601C #1C604A
split-complementary
#281C60 #604A1C #32601C
monochromatic
#0A0718 #140E31 #281C60 #3C2A8F #4F38BF

Accessibility & contrast

On white

14.73
#281C60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281C60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C60
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C60#FFFFFF#000000##FFFFFF
##281C601.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#0F2D3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281c60;
/* rgb */ color: rgb(40, 28, 96);
/* oklch */ color: oklch(28.8% 0.115 284.7);
Tailwind
colors: {
  custom: {
    50: '#69598e',
    500: '#281c60',
    950: '#000000',
  },
}
SCSS
$custom: #281c60;
$custom-light: #69598e;
$custom-dark: #000000;
JSON
{
  "hex": "#281c60",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 96
  },
  "hsl": {
    "h": 250.588,
    "s": 54.839,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28825,
    "c": 0.11458,
    "h": 284.7
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#281C60
secondary
#879542
accent
#DE4AC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281C60

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

Preview Lab → · Contrast checker → · Palette generator →

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