#281B33#281B33

#281B33 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.0% C 0.047 H 308.2°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#281B33
RGBrgb(40, 27, 51)
HSLhsl(273, 31%, 15%)
HSVhsv(273, 47%, 20%)
CMYKcmyk(21.6%, 47.1%, 0%, 80%)
CIE-LABlab(12.44, 12.25, -13.43)
CIE-LCHlch(12.44, 18.18, 312.37°)
OKLaboklab(25.01% 0.0293 -0.0372)
OKLCHoklch(25.01% 0.047 308.2)
XYZxyz(1.8644, 1.4740, 3.3176)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B33 #26331B
analogous
#1C1B33 #281B33 #331B32
triadic
#281B33 #33281B #1B3328
tetradic
#281B33 #331C1B #26331B #1B3233
square
#281B33 #331C1B #26331B #1B3233
split-complementary
#281B33 #32331B #1B331C
monochromatic
#100B14 #100B14 #281B33 #47305B #674583

Accessibility & contrast

On white

16.22
#281B33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#281B33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B33
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B33#FFFFFF#000000##FFFFFF
##281B331.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162034
Deuteranopia (green-blind)
#192132
Tritanopia (blue-blind)
#271F24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281b33;
/* rgb */ color: rgb(40, 27, 51);
/* oklch */ color: oklch(25.0% 0.047 308.2);
Tailwind
colors: {
  custom: {
    50: '#62576a',
    500: '#281b33',
    950: '#000000',
  },
}
SCSS
$custom: #281b33;
$custom-light: #62576a;
$custom-dark: #000000;
JSON
{
  "hex": "#281b33",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 51
  },
  "hsl": {
    "h": 272.5,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25011,
    "c": 0.04736,
    "h": 308.2
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#281B33
secondary
#536743
accent
#C76190
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #281B33

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

Preview Lab → · Contrast checker → · Palette generator →

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