#301B76#301B76

#301B76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.144 H 285.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#301B76
RGBrgb(48, 27, 118)
HSLhsl(254, 63%, 28%)
HSVhsv(254, 77%, 46%)
CMYKcmyk(59.3%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.89, 35.47, -48.39)
CIE-LCHlch(18.89, 60.00, 306.24°)
OKLaboklab(31.64% 0.0379 -0.1393)
OKLCHoklch(31.64% 0.144 285.2)
XYZxyz(4.8799, 2.7200, 17.4039)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B76 #61761B
analogous
#1B3376 #301B76 #5D1B76
triadic
#301B76 #76301B #1B7630
tetradic
#301B76 #761B33 #61761B #1B765D
square
#301B76 #761B33 #61761B #1B765D
split-complementary
#301B76 #765D1B #33761B
monochromatic
#0A0619 #1C1044 #301B76 #4426A8 #5D3AD2

Accessibility & contrast

On white

13.60
#301B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B76
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B76#FFFFFF#000000##FFFFFF
##301B761.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#0D3447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301b76;
/* rgb */ color: rgb(48, 27, 118);
/* oklch */ color: oklch(31.6% 0.144 285.2);
Tailwind
colors: {
  custom: {
    50: '#715a9e',
    500: '#301b76',
    950: '#000000',
  },
}
SCSS
$custom: #301b76;
$custom-light: #715a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301b76",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 253.846,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31644,
    "c": 0.14441,
    "h": 285.2
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#301B76
secondary
#92AA42
accent
#E642C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B76

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

Preview Lab → · Contrast checker → · Palette generator →

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