#281870#281870

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

Color values

HEX#281870
RGBrgb(40, 24, 112)
HSLhsl(251, 65%, 27%)
HSVhsv(251, 79%, 44%)
CMYKcmyk(64.3%, 78.6%, 0%, 56.1%)
CIE-LABlab(16.86, 34.06, -47.87)
CIE-LCHlch(16.86, 58.76, 305.43°)
OKLaboklab(29.83% 0.0292 -0.1381)
OKLCHoklch(29.83% 0.141 281.9)
XYZxyz(4.1254, 2.2739, 15.5476)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281870 #607018
analogous
#183470 #281870 #541870
triadic
#281870 #702818 #187028
tetradic
#281870 #701834 #607018 #187054
square
#281870 #701834 #607018 #187054
split-complementary
#281870 #705418 #347018
monochromatic
#090519 #160D3E #281870 #3A23A2 #4D30D3

Accessibility & contrast

On white

14.43
#281870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281870
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281870#FFFFFF#000000##FFFFFF
##2818701.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281870;
/* rgb */ color: rgb(40, 24, 112);
/* oklch */ color: oklch(29.8% 0.141 281.9);
Tailwind
colors: {
  custom: {
    50: '#6c579a',
    500: '#281870',
    950: '#000000',
  },
}
SCSS
$custom: #281870;
$custom-light: #6c579a;
$custom-dark: #000000;
JSON
{
  "hex": "#281870",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 250.909,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29834,
    "c": 0.14112,
    "h": 281.9
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#281870
secondary
#93A53E
accent
#E840C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281870

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

Preview Lab → · Contrast checker → · Palette generator →

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