#281874#281874

#281874 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.146 H 281.1°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#281874
RGBrgb(40, 24, 116)
HSLhsl(250, 66%, 27%)
HSVhsv(250, 79%, 45%)
CMYKcmyk(65.5%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.30, 35.37, -49.75)
CIE-LCHlch(17.30, 61.04, 305.41°)
OKLaboklab(30.27% 0.0281 -0.1435)
OKLCHoklch(30.27% 0.146 281.1)
XYZxyz(4.3531, 2.3650, 16.7467)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281874 #647418
analogous
#183674 #281874 #561874
triadic
#281874 #742818 #187428
tetradic
#281874 #741836 #647418 #187456
square
#281874 #741836 #647418 #187456
split-complementary
#281874 #745618 #367418
monochromatic
#090519 #170E41 #281874 #3922A7 #4E32D5

Accessibility & contrast

On white

14.26
#281874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281874
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281874#FFFFFF#000000##FFFFFF
##2818741.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281874;
/* rgb */ color: rgb(40, 24, 116);
/* oklch */ color: oklch(30.3% 0.146 281.1);
Tailwind
colors: {
  custom: {
    50: '#6d579d',
    500: '#281874',
    950: '#000000',
  },
}
SCSS
$custom: #281874;
$custom-light: #6d579d;
$custom-dark: #000000;
JSON
{
  "hex": "#281874",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 250.435,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30269,
    "c": 0.14627,
    "h": 281.1
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#281874
secondary
#97A93F
accent
#E93FCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281874

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

Preview Lab → · Contrast checker → · Palette generator →

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