#281672#281672

#281672 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.146 H 281.9°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#281672
RGBrgb(40, 22, 114)
HSLhsl(252, 68%, 27%)
HSVhsv(252, 81%, 45%)
CMYKcmyk(64.9%, 80.7%, 0%, 55.3%)
CIE-LABlab(16.70, 35.81, -49.45)
CIE-LCHlch(16.70, 61.05, 305.91°)
OKLaboklab(29.78% 0.03 -0.1426)
OKLCHoklch(29.78% 0.146 281.9)
XYZxyz(4.1983, 2.2395, 16.1274)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281672 #607216
analogous
#163272 #281672 #561672
triadic
#281672 #722816 #167228
tetradic
#281672 #721632 #607216 #167256
square
#281672 #721632 #607216 #167256
split-complementary
#281672 #725616 #327216
monochromatic
#09051A #160C3F #281672 #3A20A5 #4D2CD6

Accessibility & contrast

On white

14.50
#281672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281672
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281672#FFFFFF#000000##FFFFFF
##2816721.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281672;
/* rgb */ color: rgb(40, 22, 114);
/* oklch */ color: oklch(29.8% 0.146 281.9);
Tailwind
colors: {
  custom: {
    50: '#6d569c',
    500: '#281672',
    950: '#000000',
  },
}
SCSS
$custom: #281672;
$custom-light: #6d569c;
$custom-dark: #000000;
JSON
{
  "hex": "#281672",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 251.739,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29783,
    "c": 0.14576,
    "h": 281.9
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#281672
secondary
#93A83C
accent
#EB3DC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281672

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

Preview Lab → · Contrast checker → · Palette generator →

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