#281970#281970

#281970 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.140 H 281.7°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#281970
RGBrgb(40, 25, 112)
HSLhsl(250, 64%, 27%)
HSVhsv(250, 78%, 44%)
CMYKcmyk(64.3%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.06, 33.49, -47.54)
CIE-LCHlch(17.06, 58.16, 305.16°)
OKLaboklab(29.98% 0.0285 -0.1371)
OKLCHoklch(29.98% 0.14 281.7)
XYZxyz(4.1464, 2.3159, 15.5546)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281970 #617019
analogous
#193670 #281970 #541970
triadic
#281970 #702819 #197028
tetradic
#281970 #701936 #617019 #197054
square
#281970 #701936 #617019 #197054
split-complementary
#281970 #705419 #367019
monochromatic
#090619 #160E3E #281970 #3A24A2 #4E32D1

Accessibility & contrast

On white

14.35
#281970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281970
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281970#FFFFFF#000000##FFFFFF
##2819701.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281970;
/* rgb */ color: rgb(40, 25, 112);
/* oklch */ color: oklch(30.0% 0.140 281.7);
Tailwind
colors: {
  custom: {
    50: '#6c589a',
    500: '#281970',
    950: '#000000',
  },
}
SCSS
$custom: #281970;
$custom-light: #6c589a;
$custom-dark: #000000;
JSON
{
  "hex": "#281970",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 250.345,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29976,
    "c": 0.14003,
    "h": 281.7
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#281970
secondary
#94A540
accent
#E741CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281970

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

Preview Lab → · Contrast checker → · Palette generator →

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