#281B5E#281B5E

#281B5E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.113 H 285.6°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#281B5E
RGBrgb(40, 27, 94)
HSLhsl(252, 55%, 24%)
HSVhsv(252, 71%, 37%)
CMYKcmyk(57.4%, 71.3%, 0%, 63.1%)
CIE-LABlab(15.71, 26.21, -37.93)
CIE-LCHlch(15.71, 46.11, 304.65°)
OKLaboklab(28.46% 0.0304 -0.1089)
OKLCHoklch(28.46% 0.113 285.6)
XYZxyz(3.2868, 2.0430, 10.8086)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B5E #515E1B
analogous
#1B2F5E #281B5E #491B5E
triadic
#281B5E #5E281B #1B5E28
tetradic
#281B5E #5E1B2F #515E1B #1B5E49
square
#281B5E #5E1B2F #515E1B #1B5E49
split-complementary
#281B5E #5E491B #2F5E1B
monochromatic
#0A0718 #140D2E #281B5E #3C298E #5036BD

Accessibility & contrast

On white

14.91
#281B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B5E
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B5E#FFFFFF#000000##FFFFFF
##281B5E1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#112C3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281b5e;
/* rgb */ color: rgb(40, 27, 94);
/* oklch */ color: oklch(28.5% 0.113 285.6);
Tailwind
colors: {
  custom: {
    50: '#68588c',
    500: '#281b5e',
    950: '#000000',
  },
}
SCSS
$custom: #281b5e;
$custom-light: #68588c;
$custom-dark: #000000;
JSON
{
  "hex": "#281b5e",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 251.642,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28462,
    "c": 0.11312,
    "h": 285.6
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#281B5E
secondary
#849441
accent
#DF49C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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