#301B75#301B75

#301B75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.143 H 285.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#301B75
RGBrgb(48, 27, 117)
HSLhsl(254, 63%, 28%)
HSVhsv(254, 77%, 46%)
CMYKcmyk(59%, 76.9%, 0%, 54.1%)
CIE-LABlab(18.78, 35.15, -47.92)
CIE-LCHlch(18.78, 59.43, 306.26°)
OKLaboklab(31.54% 0.0382 -0.1379)
OKLCHoklch(31.54% 0.143 285.5)
XYZxyz(4.8208, 2.6963, 17.0926)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B75 #60751B
analogous
#1B3375 #301B75 #5D1B75
triadic
#301B75 #75301B #1B7530
tetradic
#301B75 #751B33 #60751B #1B755D
square
#301B75 #751B33 #60751B #1B755D
split-complementary
#301B75 #755D1B #33751B
monochromatic
#0A0619 #1C1043 #301B75 #4426A7 #5D39D1

Accessibility & contrast

On white

13.64
#301B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B75
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B75#FFFFFF#000000##FFFFFF
##301B751.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#0E3446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301b75;
/* rgb */ color: rgb(48, 27, 117);
/* oklch */ color: oklch(31.5% 0.143 285.5);
Tailwind
colors: {
  custom: {
    50: '#715a9e',
    500: '#301b75',
    950: '#000000',
  },
}
SCSS
$custom: #301b75;
$custom-light: #715a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301b75",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 254,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.14314,
    "h": 285.5
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#301B75
secondary
#91A942
accent
#E642BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B75

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

Preview Lab → · Contrast checker → · Palette generator →

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