#281744#281744

#281744 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.082 H 297.7°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#281744
RGBrgb(40, 23, 68)
HSLhsl(263, 49%, 18%)
HSVhsv(263, 66%, 27%)
CMYKcmyk(41.2%, 66.2%, 0%, 73.3%)
CIE-LABlab(12.49, 20.23, -25.42)
CIE-LCHlch(12.49, 32.49, 308.51°)
OKLaboklab(25.42% 0.038 -0.0722)
OKLCHoklch(25.42% 0.082 297.7)
XYZxyz(2.2246, 1.4812, 5.6364)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281744 #334417
analogous
#171C44 #281744 #3E1744
triadic
#281744 #442817 #174428
tetradic
#281744 #44171C #334417 #17443E
square
#281744 #44171C #334417 #17443E
split-complementary
#281744 #443E17 #1C4417
monochromatic
#0D0817 #0D0817 #281744 #432672 #5E369F

Accessibility & contrast

On white

16.20
#281744 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#281744 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281744
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281744#FFFFFF#000000##FFFFFF
##2817441.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012145
Deuteranopia (green-blind)
#072043
Tritanopia (blue-blind)
#22212A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281744;
/* rgb */ color: rgb(40, 23, 68);
/* oklch */ color: oklch(25.4% 0.082 297.7);
Tailwind
colors: {
  custom: {
    50: '#645578',
    500: '#281744',
    950: '#000000',
  },
}
SCSS
$custom: #281744;
$custom-light: #645578;
$custom-dark: #000000;
JSON
{
  "hex": "#281744",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 68
  },
  "hsl": {
    "h": 262.667,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25417,
    "c": 0.08155,
    "h": 297.7
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#281744
secondary
#637B3C
accent
#D94FA5
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #281744

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

Preview Lab → · Contrast checker → · Palette generator →

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