#281B45#281B45

#281B45 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.3% C 0.076 H 294.9°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#281B45
RGBrgb(40, 27, 69)
HSLhsl(259, 44%, 19%)
HSVhsv(259, 61%, 27%)
CMYKcmyk(42%, 60.9%, 0%, 72.9%)
CIE-LABlab(13.62, 17.81, -24.30)
CIE-LCHlch(13.62, 30.13, 306.23°)
OKLaboklab(26.27% 0.032 -0.0689)
OKLCHoklch(26.27% 0.076 294.9)
XYZxyz(2.3409, 1.6646, 5.8270)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B45 #38451B
analogous
#1B2345 #281B45 #3D1B45
triadic
#281B45 #45281B #1B4528
tetradic
#281B45 #451B23 #38451B #1B453D
square
#281B45 #451B23 #38451B #1B453D
split-complementary
#281B45 #453D1B #23451B
monochromatic
#0D0916 #0F0A19 #281B45 #422C71 #5B3D9D

Accessibility & contrast

On white

15.75
#281B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B45
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B45#FFFFFF#000000##FFFFFF
##281B451.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082346
Deuteranopia (green-blind)
#0C2244
Tritanopia (blue-blind)
#21242D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #281b45;
/* rgb */ color: rgb(40, 27, 69);
/* oklch */ color: oklch(26.3% 0.076 294.9);
Tailwind
colors: {
  custom: {
    50: '#645779',
    500: '#281b45',
    950: '#000000',
  },
}
SCSS
$custom: #281b45;
$custom-light: #645779;
$custom-dark: #000000;
JSON
{
  "hex": "#281b45",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 258.571,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26273,
    "c": 0.07597,
    "h": 294.9
  },
  "luminance": 0.01665
}

Semantic roles & 50–950 ramp

primary
#281B45
secondary
#697B41
accent
#D354AC
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #281B45

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

Preview Lab → · Contrast checker → · Palette generator →

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