#301B99#301B99

#301B99 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.187 H 278.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#301B99
RGBrgb(48, 27, 153)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(68.6%, 82.4%, 0%, 40%)
CIE-LABlab(22.69, 46.32, -64.09)
CIE-LCHlch(22.69, 79.08, 305.86°)
OKLaboklab(35.44% 0.0277 -0.1851)
OKLCHoklch(35.44% 0.187 278.5)
XYZxyz(7.3588, 3.7115, 30.4594)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B99 #84991B
analogous
#1B4599 #301B99 #6F1B99
triadic
#301B99 #99301B #1B9930
tetradic
#301B99 #991B45 #84991B #1B996F
square
#301B99 #991B45 #84991B #1B996F
split-complementary
#301B99 #996F1B #45991B
monochromatic
#0F0931 #201265 #301B99 #4024CD #674FE0

Accessibility & contrast

On white

12.05
#301B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#301B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B99
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B99#FFFFFF#000000##FFFFFF
##301B991.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301b99;
/* rgb */ color: rgb(48, 27, 153);
/* oklch */ color: oklch(35.4% 0.187 278.5);
Tailwind
colors: {
  custom: {
    50: '#795cb8',
    500: '#301b99',
    950: '#000000',
  },
}
SCSS
$custom: #301b99;
$custom-light: #795cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#301b99",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 250,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35436,
    "c": 0.18717,
    "h": 278.5
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#301B99
secondary
#AFC24E
accent
#ED3BCF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301B99

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

Preview Lab → · Contrast checker → · Palette generator →

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