#281B5C#281B5C

#281B5C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.110 H 286.2°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#281B5C
RGBrgb(40, 27, 92)
HSLhsl(252, 55%, 23%)
HSVhsv(252, 71%, 36%)
CMYKcmyk(56.5%, 70.7%, 0%, 63.9%)
CIE-LABlab(15.53, 25.53, -36.90)
CIE-LCHlch(15.53, 44.87, 304.68°)
OKLaboklab(28.27% 0.0307 -0.1059)
OKLCHoklch(28.27% 0.11 286.2)
XYZxyz(3.1982, 2.0075, 10.3421)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B5C #4F5C1B
analogous
#1B2E5C #281B5C #481B5C
triadic
#281B5C #5C281B #1B5C28
tetradic
#281B5C #5C1B2E #4F5C1B #1B5C48
square
#281B5C #5C1B2E #4F5C1B #1B5C48
split-complementary
#281B5C #5C481B #2E5C1B
monochromatic
#0A0718 #130D2D #281B5C #3D298B #5137BB

Accessibility & contrast

On white

14.98
#281B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281B5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B5C
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B5C#FFFFFF#000000##FFFFFF
##281B5C1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#132B38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281b5c;
/* rgb */ color: rgb(40, 27, 92);
/* oklch */ color: oklch(28.3% 0.110 286.2);
Tailwind
colors: {
  custom: {
    50: '#68588b',
    500: '#281b5c',
    950: '#000000',
  },
}
SCSS
$custom: #281b5c;
$custom-light: #68588b;
$custom-dark: #000000;
JSON
{
  "hex": "#281b5c",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 252,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28271,
    "c": 0.11029,
    "h": 286.2
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#281B5C
secondary
#829241
accent
#DE4AC0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #281B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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