#301B71#301B71

#301B71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.138 H 286.5°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#301B71
RGBrgb(48, 27, 113)
HSLhsl(255, 61%, 27%)
HSVhsv(255, 76%, 44%)
CMYKcmyk(57.5%, 76.1%, 0%, 55.7%)
CIE-LABlab(18.38, 33.88, -45.99)
CIE-LCHlch(18.38, 57.13, 306.38°)
OKLaboklab(31.14% 0.0392 -0.1323)
OKLCHoklch(31.14% 0.138 286.5)
XYZxyz(4.5906, 2.6042, 15.8804)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B71 #5C711B
analogous
#1B3171 #301B71 #5B1B71
triadic
#301B71 #71301B #1B7130
tetradic
#301B71 #711B31 #5C711B #1B715B
square
#301B71 #711B31 #5C711B #1B715B
split-complementary
#301B71 #715B1B #31711B
monochromatic
#0A0619 #1B0F40 #301B71 #4527A2 #5C37CF

Accessibility & contrast

On white

13.81
#301B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B71
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B71#FFFFFF#000000##FFFFFF
##301B711.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#133244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301b71;
/* rgb */ color: rgb(48, 27, 113);
/* oklch */ color: oklch(31.1% 0.138 286.5);
Tailwind
colors: {
  custom: {
    50: '#705a9b',
    500: '#301b71',
    950: '#000000',
  },
}
SCSS
$custom: #301b71;
$custom-light: #705a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#301b71",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 254.651,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31137,
    "c": 0.13801,
    "h": 286.5
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#301B71
secondary
#8DA642
accent
#E543BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B71

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

Preview Lab → · Contrast checker → · Palette generator →

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