#301B81#301B81

#301B81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 282.7°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#301B81
RGBrgb(48, 27, 129)
HSLhsl(252, 65%, 31%)
HSVhsv(252, 79%, 51%)
CMYKcmyk(62.8%, 79.1%, 0%, 49.4%)
CIE-LABlab(20.03, 38.93, -53.52)
CIE-LCHlch(20.03, 66.18, 306.03°)
OKLaboklab(32.8% 0.0349 -0.1543)
OKLCHoklch(32.8% 0.158 282.7)
XYZxyz(5.5721, 2.9968, 21.0494)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B81 #6C811B
analogous
#1B3981 #301B81 #631B81
triadic
#301B81 #81301B #1B8130
tetradic
#301B81 #811B39 #6C811B #1B8163
square
#301B81 #811B39 #6C811B #1B8163
split-complementary
#301B81 #81631B #39811B
monochromatic
#0A061C #1D104E #301B81 #4326B4 #5F3FD7

Accessibility & contrast

On white

13.13
#301B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B81
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B81#FFFFFF#000000##FFFFFF
##301B811.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301b81;
/* rgb */ color: rgb(48, 27, 129);
/* oklch */ color: oklch(32.8% 0.158 282.7);
Tailwind
colors: {
  custom: {
    50: '#745aa7',
    500: '#301b81',
    950: '#000000',
  },
}
SCSS
$custom: #301b81;
$custom-light: #745aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#301b81",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 252.353,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.15823,
    "h": 282.7
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#301B81
secondary
#9DB543
accent
#E83FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301B81

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

Preview Lab → · Contrast checker → · Palette generator →

#301B81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva