#281E57#281E57

#281E57 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.099 H 286.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#281E57
RGBrgb(40, 30, 87)
HSLhsl(251, 49%, 23%)
HSVhsv(251, 66%, 34%)
CMYKcmyk(54%, 65.5%, 0%, 65.9%)
CIE-LABlab(15.84, 21.81, -33.04)
CIE-LCHlch(15.84, 39.59, 303.44°)
OKLaboklab(28.36% 0.0277 -0.0946)
OKLCHoklch(28.36% 0.099 286.3)
XYZxyz(3.0591, 2.0676, 9.2529)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E57 #4D571E
analogous
#1E3057 #281E57 #441E57
triadic
#281E57 #57281E #1E5728
tetradic
#281E57 #571E30 #4D571E #1E5744
square
#281E57 #571E30 #4D571E #1E5744
split-complementary
#281E57 #57441E #30571E
monochromatic
#0A0817 #130E29 #281E57 #3D2E85 #523DB2

Accessibility & contrast

On white

14.86
#281E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E57
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E57#FFFFFF#000000##FFFFFF
##281E571.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#172B37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281e57;
/* rgb */ color: rgb(40, 30, 87);
/* oklch */ color: oklch(28.4% 0.099 286.3);
Tailwind
colors: {
  custom: {
    50: '#675a87',
    500: '#281e57',
    950: '#000000',
  },
}
SCSS
$custom: #281e57;
$custom-light: #675a87;
$custom-dark: #000000;
JSON
{
  "hex": "#281e57",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 250.526,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2836,
    "c": 0.09854,
    "h": 286.3
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#281E57
secondary
#808C45
accent
#D850C0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281E57

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

Preview Lab → · Contrast checker → · Palette generator →

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