#281B5B#281B5B

#281B5B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.109 H 286.5°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#281B5B
RGBrgb(40, 27, 91)
HSLhsl(252, 54%, 23%)
HSVhsv(252, 70%, 36%)
CMYKcmyk(56%, 70.3%, 0%, 64.3%)
CIE-LABlab(15.44, 25.19, -36.38)
CIE-LCHlch(15.44, 44.25, 304.70°)
OKLaboklab(28.18% 0.0309 -0.1044)
OKLCHoklch(28.18% 0.109 286.5)
XYZxyz(3.1548, 1.9902, 10.1134)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B5B #4E5B1B
analogous
#1B2E5B #281B5B #481B5B
triadic
#281B5B #5B281B #1B5B28
tetradic
#281B5B #5B1B2E #4E5B1B #1B5B48
square
#281B5B #5B1B2E #4E5B1B #1B5B48
split-complementary
#281B5B #5B481B #2E5B1B
monochromatic
#0A0718 #130D2C #281B5B #3D298A #5137B9

Accessibility & contrast

On white

15.02
#281B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B5B
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B5B#FFFFFF#000000##FFFFFF
##281B5B1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#142B38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281b5b;
/* rgb */ color: rgb(40, 27, 91);
/* oklch */ color: oklch(28.2% 0.109 286.5);
Tailwind
colors: {
  custom: {
    50: '#68588a',
    500: '#281b5b',
    950: '#000000',
  },
}
SCSS
$custom: #281b5b;
$custom-light: #68588a;
$custom-dark: #000000;
JSON
{
  "hex": "#281b5b",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 252.188,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28177,
    "c": 0.10886,
    "h": 286.5
  },
  "luminance": 0.0199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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