#301781#301781

#301781 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.162 H 283.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#301781
RGBrgb(48, 23, 129)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(62.8%, 82.2%, 0%, 49.4%)
CIE-LABlab(19.33, 40.94, -54.67)
CIE-LCHlch(19.33, 68.30, 306.83°)
OKLaboklab(32.31% 0.0375 -0.1577)
OKLCHoklch(32.31% 0.162 283.4)
XYZxyz(5.4865, 2.8258, 21.0209)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301781 #688117
analogous
#173381 #301781 #651781
triadic
#301781 #813017 #178130
tetradic
#301781 #811733 #688117 #178165
square
#301781 #811733 #688117 #178165
split-complementary
#301781 #816517 #338117
monochromatic
#0A051A #1D0E4D #301781 #4320B5 #5E37DB

Accessibility & contrast

On white

13.42
#301781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301781
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301781#FFFFFF#000000##FFFFFF
##3017811.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301781;
/* rgb */ color: rgb(48, 23, 129);
/* oklch */ color: oklch(32.3% 0.162 283.4);
Tailwind
colors: {
  custom: {
    50: '#7458a7',
    500: '#301781',
    950: '#000000',
  },
}
SCSS
$custom: #301781;
$custom-light: #7458a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301781",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 254.151,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.16205,
    "h": 283.4
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#301781
secondary
#99B53E
accent
#ED3BC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301781

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

Preview Lab → · Contrast checker → · Palette generator →

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