#281865#281865

#281865 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.127 H 284.6°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#281865
RGBrgb(40, 24, 101)
HSLhsl(252, 62%, 25%)
HSVhsv(252, 76%, 40%)
CMYKcmyk(60.4%, 76.2%, 0%, 60.4%)
CIE-LABlab(15.72, 30.43, -42.56)
CIE-LCHlch(15.72, 52.32, 305.56°)
OKLaboklab(28.67% 0.032 -0.1225)
OKLCHoklch(28.67% 0.127 284.6)
XYZxyz(3.5500, 2.0438, 12.5168)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281865 #556518
analogous
#182E65 #281865 #4F1865
triadic
#281865 #652818 #186528
tetradic
#281865 #65182E #556518 #18654F
square
#281865 #65182E #556518 #18654F
split-complementary
#281865 #654F18 #2E6518
monochromatic
#0A0619 #140C34 #281865 #3C2496 #4F30C8

Accessibility & contrast

On white

14.91
#281865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281865
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281865#FFFFFF#000000##FFFFFF
##2818651.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#092D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281865;
/* rgb */ color: rgb(40, 24, 101);
/* oklch */ color: oklch(28.7% 0.127 284.6);
Tailwind
colors: {
  custom: {
    50: '#6a5792',
    500: '#281865',
    950: '#000000',
  },
}
SCSS
$custom: #281865;
$custom-light: #6a5792;
$custom-dark: #000000;
JSON
{
  "hex": "#281865",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 252.468,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28674,
    "c": 0.12665,
    "h": 284.6
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#281865
secondary
#889B3E
accent
#E543C3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281865

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

Preview Lab → · Contrast checker → · Palette generator →

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