#281E5A#281E5A

#281E5A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.103 H 285.5°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#281E5A
RGBrgb(40, 30, 90)
HSLhsl(250, 50%, 24%)
HSVhsv(250, 67%, 35%)
CMYKcmyk(55.6%, 66.7%, 0%, 64.7%)
CIE-LABlab(16.09, 22.85, -34.64)
CIE-LCHlch(16.09, 41.50, 303.42°)
OKLaboklab(28.63% 0.0275 -0.0993)
OKLCHoklch(28.63% 0.103 285.5)
XYZxyz(3.1843, 2.1177, 9.9118)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E5A #505A1E
analogous
#1E325A #281E5A #461E5A
triadic
#281E5A #5A281E #1E5A28
tetradic
#281E5A #5A1E32 #505A1E #1E5A46
square
#281E5A #5A1E32 #505A1E #1E5A46
split-complementary
#281E5A #5A461E #325A1E
monochromatic
#0A0817 #140F2C #281E5A #3C2D88 #513DB6

Accessibility & contrast

On white

14.75
#281E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281E5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E5A
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E5A#FFFFFF#000000##FFFFFF
##281E5A1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#152C38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281e5a;
/* rgb */ color: rgb(40, 30, 90);
/* oklch */ color: oklch(28.6% 0.103 285.5);
Tailwind
colors: {
  custom: {
    50: '#675a89',
    500: '#281e5a',
    950: '#000000',
  },
}
SCSS
$custom: #281e5a;
$custom-light: #675a89;
$custom-dark: #000000;
JSON
{
  "hex": "#281e5a",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 250,
    "s": 50,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28627,
    "c": 0.10302,
    "h": 285.5
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#281E5A
secondary
#838F45
accent
#DA4EC2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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