#281B60#281B60

#281B60 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.116 H 285.1°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#281B60
RGBrgb(40, 27, 96)
HSLhsl(251, 56%, 24%)
HSVhsv(251, 72%, 38%)
CMYKcmyk(58.3%, 71.9%, 0%, 62.4%)
CIE-LABlab(15.90, 26.89, -38.96)
CIE-LCHlch(15.90, 47.34, 304.62°)
OKLaboklab(28.66% 0.0301 -0.112)
OKLCHoklch(28.66% 0.116 285.1)
XYZxyz(3.3777, 2.0793, 11.2874)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B60 #53601B
analogous
#1B3160 #281B60 #4B1B60
triadic
#281B60 #60281B #1B6028
tetradic
#281B60 #601B31 #53601B #1B604B
square
#281B60 #601B31 #53601B #1B604B
split-complementary
#281B60 #604B1B #31601B
monochromatic
#0A0718 #140E30 #281B60 #3C2890 #5036C0

Accessibility & contrast

On white

14.83
#281B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B60
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B60#FFFFFF#000000##FFFFFF
##281B601.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#0F2D3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281b60;
/* rgb */ color: rgb(40, 27, 96);
/* oklch */ color: oklch(28.7% 0.116 285.1);
Tailwind
colors: {
  custom: {
    50: '#69588e',
    500: '#281b60',
    950: '#000000',
  },
}
SCSS
$custom: #281b60;
$custom-light: #69588e;
$custom-dark: #000000;
JSON
{
  "hex": "#281b60",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 251.304,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28655,
    "c": 0.11594,
    "h": 285.1
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#281B60
secondary
#869641
accent
#DF48C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281B60

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

Preview Lab → · Contrast checker → · Palette generator →

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