#281775#281775

#281775 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.149 H 281.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#281775
RGBrgb(40, 23, 117)
HSLhsl(251, 67%, 27%)
HSVhsv(251, 80%, 46%)
CMYKcmyk(65.8%, 80.3%, 0%, 54.1%)
CIE-LABlab(17.22, 36.24, -50.53)
CIE-LCHlch(17.22, 62.18, 305.65°)
OKLaboklab(30.25% 0.0285 -0.1458)
OKLCHoklch(30.25% 0.149 281.1)
XYZxyz(4.3913, 2.3479, 17.0480)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281775 #647517
analogous
#173575 #281775 #571775
triadic
#281775 #752817 #177528
tetradic
#281775 #751735 #647517 #177557
square
#281775 #751735 #647517 #177557
split-complementary
#281775 #755717 #357517
monochromatic
#09051A #170D42 #281775 #3921A8 #4E30D6

Accessibility & contrast

On white

14.29
#281775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281775
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281775#FFFFFF#000000##FFFFFF
##2817751.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281775;
/* rgb */ color: rgb(40, 23, 117);
/* oklch */ color: oklch(30.2% 0.149 281.1);
Tailwind
colors: {
  custom: {
    50: '#6e579e',
    500: '#281775',
    950: '#000000',
  },
}
SCSS
$custom: #281775;
$custom-light: #6e579e;
$custom-dark: #000000;
JSON
{
  "hex": "#281775",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 250.851,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30245,
    "c": 0.14855,
    "h": 281.1
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#281775
secondary
#97AA3D
accent
#EA3ECB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281775

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

Preview Lab → · Contrast checker → · Palette generator →

#281775 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva