#281B41#281B41

#281B41 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.070 H 297.1°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#281B41
RGBrgb(40, 27, 65)
HSLhsl(261, 41%, 18%)
HSVhsv(261, 58%, 25%)
CMYKcmyk(38.5%, 58.5%, 0%, 74.5%)
CIE-LABlab(13.33, 16.52, -21.97)
CIE-LCHlch(13.33, 27.49, 306.94°)
OKLaboklab(25.97% 0.0317 -0.062)
OKLCHoklch(25.97% 0.07 297.1)
XYZxyz(2.2209, 1.6166, 5.1950)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B41 #34411B
analogous
#1B2141 #281B41 #3B1B41
triadic
#281B41 #41281B #1B4128
tetradic
#281B41 #411B21 #34411B #1B413B
square
#281B41 #411B21 #34411B #1B413B
split-complementary
#281B41 #413B1B #21411B
monochromatic
#0D0916 #0D0916 #281B41 #432D6C #5D3F97

Accessibility & contrast

On white

15.87
#281B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B41
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B41#FFFFFF#000000##FFFFFF
##281B411.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2242
Deuteranopia (green-blind)
#102240
Tritanopia (blue-blind)
#22222B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281b41;
/* rgb */ color: rgb(40, 27, 65);
/* oklch */ color: oklch(26.0% 0.070 297.1);
Tailwind
colors: {
  custom: {
    50: '#645776',
    500: '#281b41',
    950: '#000000',
  },
}
SCSS
$custom: #281b41;
$custom-light: #645776;
$custom-dark: #000000;
JSON
{
  "hex": "#281b41",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 260.526,
    "s": 41.304,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25967,
    "c": 0.06969,
    "h": 297.1
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#281B41
secondary
#647641
accent
#D157A7
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #281B41

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

Preview Lab → · Contrast checker → · Palette generator →

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