#281674#281674

#281674 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.148 H 281.5°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#281674
RGBrgb(40, 22, 116)
HSLhsl(251, 68%, 27%)
HSVhsv(251, 81%, 45%)
CMYKcmyk(65.5%, 81%, 0%, 54.5%)
CIE-LABlab(16.92, 36.45, -50.37)
CIE-LCHlch(16.92, 62.18, 305.89°)
OKLaboklab(30.01% 0.0294 -0.1453)
OKLCHoklch(30.01% 0.148 281.5)
XYZxyz(4.3134, 2.2856, 16.7335)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281674 #627416
analogous
#163374 #281674 #571674
triadic
#281674 #742816 #167428
tetradic
#281674 #741633 #627416 #167457
square
#281674 #741633 #627416 #167457
split-complementary
#281674 #745716 #337416
monochromatic
#09051A #160C41 #281674 #3A20A7 #4E2DD7

Accessibility & contrast

On white

14.41
#281674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281674
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281674#FFFFFF#000000##FFFFFF
##2816741.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281674;
/* rgb */ color: rgb(40, 22, 116);
/* oklch */ color: oklch(30.0% 0.148 281.5);
Tailwind
colors: {
  custom: {
    50: '#6d569d',
    500: '#281674',
    950: '#000000',
  },
}
SCSS
$custom: #281674;
$custom-light: #6d569d;
$custom-dark: #000000;
JSON
{
  "hex": "#281674",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 251.489,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30005,
    "c": 0.14828,
    "h": 281.5
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#281674
secondary
#95AA3C
accent
#EB3DCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281674

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

Preview Lab → · Contrast checker → · Palette generator →

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