#301B8B#301B8B

#301B8B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.170 H 280.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#301B8B
RGBrgb(48, 27, 139)
HSLhsl(251, 67%, 33%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(65.5%, 80.6%, 0%, 45.5%)
CIE-LABlab(21.12, 42.04, -58.02)
CIE-LCHlch(21.12, 71.65, 305.93°)
OKLaboklab(33.88% 0.032 -0.1674)
OKLCHoklch(33.88% 0.17 280.8)
XYZxyz(6.2696, 3.2758, 24.7230)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B8B #768B1B
analogous
#1B3E8B #301B8B #681B8B
triadic
#301B8B #8B301B #1B8B30
tetradic
#301B8B #8B1B3E #768B1B #1B8B68
square
#301B8B #8B1B3E #768B1B #1B8B68
split-complementary
#301B8B #8B681B #3E8B1B
monochromatic
#0D0725 #1E1158 #301B8B #4225BE #6145DB

Accessibility & contrast

On white

12.69
#301B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B8B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B8B#FFFFFF#000000##FFFFFF
##301B8B1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301b8b;
/* rgb */ color: rgb(48, 27, 139);
/* oklch */ color: oklch(33.9% 0.170 280.8);
Tailwind
colors: {
  custom: {
    50: '#765bae',
    500: '#301b8b',
    950: '#000000',
  },
}
SCSS
$custom: #301b8b;
$custom-light: #765bae;
$custom-dark: #000000;
JSON
{
  "hex": "#301b8b",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 251.25,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33877,
    "c": 0.17047,
    "h": 280.8
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#301B8B
secondary
#A6BC45
accent
#EA3DCA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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