#281868#281868

#281868 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.131 H 283.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#281868
RGBrgb(40, 24, 104)
HSLhsl(252, 63%, 25%)
HSVhsv(252, 77%, 41%)
CMYKcmyk(61.5%, 76.9%, 0%, 59.2%)
CIE-LABlab(16.02, 31.43, -44.04)
CIE-LCHlch(16.02, 54.10, 305.51°)
OKLaboklab(28.99% 0.0313 -0.1268)
OKLCHoklch(28.99% 0.131 283.8)
XYZxyz(3.6996, 2.1036, 13.3051)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281868 #586818
analogous
#183068 #281868 #501868
triadic
#281868 #682818 #186828
tetradic
#281868 #681830 #586818 #186850
square
#281868 #681830 #586818 #186850
split-complementary
#281868 #685018 #306818
monochromatic
#0A0619 #150D36 #281868 #3B239A #4E2FCB

Accessibility & contrast

On white

14.78
#281868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281868
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281868#FFFFFF#000000##FFFFFF
##2818681.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#042E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281868;
/* rgb */ color: rgb(40, 24, 104);
/* oklch */ color: oklch(29.0% 0.131 283.8);
Tailwind
colors: {
  custom: {
    50: '#6b5794',
    500: '#281868',
    950: '#000000',
  },
}
SCSS
$custom: #281868;
$custom-light: #6b5794;
$custom-dark: #000000;
JSON
{
  "hex": "#281868",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 252,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28985,
    "c": 0.13065,
    "h": 283.8
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#281868
secondary
#8B9E3E
accent
#E642C5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281868

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

Preview Lab → · Contrast checker → · Palette generator →

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