#281B4E#281B4E

#281B4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.090 H 290.9°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#281B4E
RGBrgb(40, 27, 78)
HSLhsl(255, 49%, 21%)
HSVhsv(255, 65%, 31%)
CMYKcmyk(48.7%, 65.4%, 0%, 69.4%)
CIE-LABlab(14.32, 20.79, -29.39)
CIE-LCHlch(14.32, 36.00, 305.27°)
OKLaboklab(27.01% 0.032 -0.0838)
OKLCHoklch(27.01% 0.09 290.9)
XYZxyz(2.6418, 1.7850, 7.4116)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B4E #414E1B
analogous
#1B274E #281B4E #411B4E
triadic
#281B4E #4E281B #1B4E28
tetradic
#281B4E #4E1B27 #414E1B #1B4E41
square
#281B4E #4E1B27 #414E1B #1B4E41
split-complementary
#281B4E #4E411B #274E1B
monochromatic
#0C0817 #110B21 #281B4E #3F2B7B #573AA9

Accessibility & contrast

On white

15.48
#281B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B4E
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B4E#FFFFFF#000000##FFFFFF
##281B4E1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#1D2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #281b4e;
/* rgb */ color: rgb(40, 27, 78);
/* oklch */ color: oklch(27.0% 0.090 290.9);
Tailwind
colors: {
  custom: {
    50: '#655880',
    500: '#281b4e',
    950: '#000000',
  },
}
SCSS
$custom: #281b4e;
$custom-light: #655880;
$custom-dark: #000000;
JSON
{
  "hex": "#281b4e",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 255.294,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2701,
    "c": 0.08976,
    "h": 290.9
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#281B4E
secondary
#738441
accent
#D850B5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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