#301B97#301B97

#301B97 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.185 H 278.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#301B97
RGBrgb(48, 27, 151)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 82%, 59%)
CMYKcmyk(68.2%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.46, 45.72, -63.24)
CIE-LCHlch(22.46, 78.03, 305.86°)
OKLaboklab(35.21% 0.0283 -0.1826)
OKLCHoklch(35.21% 0.185 278.8)
XYZxyz(7.1950, 3.6460, 29.5967)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B97 #82971B
analogous
#1B4497 #301B97 #6E1B97
triadic
#301B97 #97301B #1B9730
tetradic
#301B97 #971B44 #82971B #1B976E
square
#301B97 #971B44 #82971B #1B976E
split-complementary
#301B97 #976E1B #44971B
monochromatic
#0F082F #1F1263 #301B97 #4124CB #664DDF

Accessibility & contrast

On white

12.14
#301B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#301B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B97
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B97#FFFFFF#000000##FFFFFF
##301B971.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301b97;
/* rgb */ color: rgb(48, 27, 151);
/* oklch */ color: oklch(35.2% 0.185 278.8);
Tailwind
colors: {
  custom: {
    50: '#785cb7',
    500: '#301b97',
    950: '#000000',
  },
}
SCSS
$custom: #301b97;
$custom-light: #785cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#301b97",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 250.161,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3521,
    "c": 0.18481,
    "h": 278.8
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#301B97
secondary
#AEC14C
accent
#EC3BCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301B97

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

Preview Lab → · Contrast checker → · Palette generator →

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