#281B61#281B61

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

Color values

HEX#281B61
RGBrgb(40, 27, 97)
HSLhsl(251, 56%, 24%)
HSVhsv(251, 72%, 38%)
CMYKcmyk(58.8%, 72.2%, 0%, 62%)
CIE-LABlab(15.99, 27.23, -39.46)
CIE-LCHlch(15.99, 47.95, 304.61°)
OKLaboklab(28.75% 0.03 -0.1135)
OKLCHoklch(28.75% 0.117 284.8)
XYZxyz(3.4240, 2.0979, 11.5314)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B61 #54611B
analogous
#1B3161 #281B61 #4B1B61
triadic
#281B61 #61281B #1B6128
tetradic
#281B61 #611B31 #54611B #1B614B
square
#281B61 #611B31 #54611B #1B614B
split-complementary
#281B61 #614B1B #31611B
monochromatic
#0A0718 #140E31 #281B61 #3C2891 #4F36C1

Accessibility & contrast

On white

14.79
#281B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B61
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B61#FFFFFF#000000##FFFFFF
##281B611.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#0E2D3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281b61;
/* rgb */ color: rgb(40, 27, 97);
/* oklch */ color: oklch(28.8% 0.117 284.8);
Tailwind
colors: {
  custom: {
    50: '#69588f',
    500: '#281b61',
    950: '#000000',
  },
}
SCSS
$custom: #281b61;
$custom-light: #69588f;
$custom-dark: #000000;
JSON
{
  "hex": "#281b61",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 251.143,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28752,
    "c": 0.11735,
    "h": 284.8
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#281B61
secondary
#879741
accent
#E048C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281B61

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

Preview Lab → · Contrast checker → · Palette generator →

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