#281C5E#281C5E

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

Color values

HEX#281C5E
RGBrgb(40, 28, 94)
HSLhsl(251, 54%, 24%)
HSVhsv(251, 70%, 37%)
CMYKcmyk(57.4%, 70.2%, 0%, 63.1%)
CIE-LABlab(15.95, 25.56, -37.54)
CIE-LCHlch(15.95, 45.42, 304.25°)
OKLaboklab(28.64% 0.0294 -0.1078)
OKLCHoklch(28.64% 0.112 285.2)
XYZxyz(3.3101, 2.0896, 10.8164)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C5E #525E1C
analogous
#1C315E #281C5E #491C5E
triadic
#281C5E #5E281C #1C5E28
tetradic
#281C5E #5E1C31 #525E1C #1C5E49
square
#281C5E #5E1C31 #525E1C #1C5E49
split-complementary
#281C5E #5E491C #315E1C
monochromatic
#0A0718 #140E2F #281C5E #3C2A8D #5038BC

Accessibility & contrast

On white

14.81
#281C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C5E
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C5E#FFFFFF#000000##FFFFFF
##281C5E1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#112C3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281c5e;
/* rgb */ color: rgb(40, 28, 94);
/* oklch */ color: oklch(28.6% 0.112 285.2);
Tailwind
colors: {
  custom: {
    50: '#68598c',
    500: '#281c5e',
    950: '#000000',
  },
}
SCSS
$custom: #281c5e;
$custom-light: #68598c;
$custom-dark: #000000;
JSON
{
  "hex": "#281c5e",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 250.909,
    "s": 54.098,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28635,
    "c": 0.11174,
    "h": 285.2
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#281C5E
secondary
#859342
accent
#DD4AC3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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