#301B89#301B89

#301B89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.168 H 281.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#301B89
RGBrgb(48, 27, 137)
HSLhsl(251, 67%, 32%)
HSVhsv(251, 80%, 54%)
CMYKcmyk(65%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.90, 41.42, -57.13)
CIE-LCHlch(20.90, 70.57, 305.94°)
OKLaboklab(33.66% 0.0326 -0.1649)
OKLCHoklch(33.66% 0.168 281.2)
XYZxyz(6.1248, 3.2179, 23.9604)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B89 #74891B
analogous
#1B3D89 #301B89 #671B89
triadic
#301B89 #89301B #1B8930
tetradic
#301B89 #891B3D #74891B #1B8967
square
#301B89 #891B3D #74891B #1B8967
split-complementary
#301B89 #89671B #3D891B
monochromatic
#0C0723 #1E1156 #301B89 #4225BC #6144DA

Accessibility & contrast

On white

12.78
#301B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B89
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B89#FFFFFF#000000##FFFFFF
##301B891.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301b89;
/* rgb */ color: rgb(48, 27, 137);
/* oklch */ color: oklch(33.7% 0.168 281.2);
Tailwind
colors: {
  custom: {
    50: '#755bad',
    500: '#301b89',
    950: '#000000',
  },
}
SCSS
$custom: #301b89;
$custom-light: #755bad;
$custom-dark: #000000;
JSON
{
  "hex": "#301b89",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 251.455,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33658,
    "c": 0.16804,
    "h": 281.2
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#301B89
secondary
#A5BC44
accent
#EA3EC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301B89

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

Preview Lab → · Contrast checker → · Palette generator →

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