#281774#281774

#281774 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.147 H 281.3°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#281774
RGBrgb(40, 23, 116)
HSLhsl(251, 67%, 27%)
HSVhsv(251, 80%, 45%)
CMYKcmyk(65.5%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.11, 35.92, -50.06)
CIE-LCHlch(17.11, 61.62, 305.66°)
OKLaboklab(30.14% 0.0288 -0.1444)
OKLCHoklch(30.14% 0.147 281.3)
XYZxyz(4.3329, 2.3245, 16.7400)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281774 #637417
analogous
#173474 #281774 #571774
triadic
#281774 #742817 #177428
tetradic
#281774 #741734 #637417 #177457
square
#281774 #741734 #637417 #177457
split-complementary
#281774 #745717 #347417
monochromatic
#09051A #160D41 #281774 #3A21A7 #4E30D6

Accessibility & contrast

On white

14.33
#281774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281774
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281774#FFFFFF#000000##FFFFFF
##2817741.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281774;
/* rgb */ color: rgb(40, 23, 116);
/* oklch */ color: oklch(30.1% 0.147 281.3);
Tailwind
colors: {
  custom: {
    50: '#6d579d',
    500: '#281774',
    950: '#000000',
  },
}
SCSS
$custom: #281774;
$custom-light: #6d579d;
$custom-dark: #000000;
JSON
{
  "hex": "#281774",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 250.968,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.14729,
    "h": 281.3
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#281774
secondary
#96A93D
accent
#EA3ECA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281774

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

Preview Lab → · Contrast checker → · Palette generator →

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