#281D5C#281D5C

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

Color values

HEX#281D5C
RGBrgb(40, 29, 92)
HSLhsl(250, 52%, 24%)
HSVhsv(250, 68%, 36%)
CMYKcmyk(56.5%, 68.5%, 0%, 63.9%)
CIE-LABlab(16.02, 24.22, -36.10)
CIE-LCHlch(16.02, 43.47, 303.85°)
OKLaboklab(28.63% 0.0285 -0.1036)
OKLCHoklch(28.63% 0.107 285.4)
XYZxyz(3.2456, 2.1024, 10.3579)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D5C #515C1D
analogous
#1D315C #281D5C #471D5C
triadic
#281D5C #5C281D #1D5C28
tetradic
#281D5C #5C1D31 #515C1D #1D5C47
square
#281D5C #5C1D31 #515C1D #1D5C47
split-complementary
#281D5C #5C471D #315C1D
monochromatic
#0A0717 #140E2D #281D5C #3C2C8B #503AB9

Accessibility & contrast

On white

14.78
#281D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281D5C
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D5C#FFFFFF#000000##FFFFFF
##281D5C1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#132C39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281d5c;
/* rgb */ color: rgb(40, 29, 92);
/* oklch */ color: oklch(28.6% 0.107 285.4);
Tailwind
colors: {
  custom: {
    50: '#68598b',
    500: '#281d5c',
    950: '#000000',
  },
}
SCSS
$custom: #281d5c;
$custom-light: #68598b;
$custom-dark: #000000;
JSON
{
  "hex": "#281d5c",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 250.476,
    "s": 52.066,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28626,
    "c": 0.10742,
    "h": 285.4
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#281D5C
secondary
#849144
accent
#DC4CC3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #281D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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