#281875#281875

#281875 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.148 H 280.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#281875
RGBrgb(40, 24, 117)
HSLhsl(250, 66%, 28%)
HSVhsv(250, 79%, 46%)
CMYKcmyk(65.8%, 79.5%, 0%, 54.1%)
CIE-LABlab(17.41, 35.70, -50.21)
CIE-LCHlch(17.41, 61.61, 305.41°)
OKLaboklab(30.38% 0.0278 -0.1449)
OKLCHoklch(30.38% 0.148 280.9)
XYZxyz(4.4116, 2.3884, 17.0547)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281875 #657518
analogous
#183675 #281875 #571875
triadic
#281875 #752818 #187528
tetradic
#281875 #751836 #657518 #187557
square
#281875 #751836 #657518 #187557
split-complementary
#281875 #755718 #367518
monochromatic
#090519 #170E42 #281875 #3922A8 #4E32D5

Accessibility & contrast

On white

14.21
#281875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281875
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281875#FFFFFF#000000##FFFFFF
##2818751.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281875;
/* rgb */ color: rgb(40, 24, 117);
/* oklch */ color: oklch(30.4% 0.148 280.9);
Tailwind
colors: {
  custom: {
    50: '#6d579e',
    500: '#281875',
    950: '#000000',
  },
}
SCSS
$custom: #281875;
$custom-light: #6d579e;
$custom-dark: #000000;
JSON
{
  "hex": "#281875",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 250.323,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30378,
    "c": 0.14754,
    "h": 280.9
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#281875
secondary
#98AA3F
accent
#E93FCC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281875

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

Preview Lab → · Contrast checker → · Palette generator →

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