#301B88#301B88

#301B88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.167 H 281.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#301B88
RGBrgb(48, 27, 136)
HSLhsl(252, 67%, 32%)
HSVhsv(252, 80%, 53%)
CMYKcmyk(64.7%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.79, 41.11, -56.69)
CIE-LCHlch(20.79, 70.02, 305.95°)
OKLaboklab(33.55% 0.0329 -0.1636)
OKLCHoklch(33.55% 0.167 281.4)
XYZxyz(6.0534, 3.1894, 23.5844)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B88 #73881B
analogous
#1B3C88 #301B88 #671B88
triadic
#301B88 #88301B #1B8830
tetradic
#301B88 #881B3C #73881B #1B8867
square
#301B88 #881B3C #73881B #1B8867
split-complementary
#301B88 #88671B #3C881B
monochromatic
#0C0722 #1E1155 #301B88 #4225BB #6144DA

Accessibility & contrast

On white

12.82
#301B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B88
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B88#FFFFFF#000000##FFFFFF
##301B881.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301b88;
/* rgb */ color: rgb(48, 27, 136);
/* oklch */ color: oklch(33.5% 0.167 281.4);
Tailwind
colors: {
  custom: {
    50: '#755bac',
    500: '#301b88',
    950: '#000000',
  },
}
SCSS
$custom: #301b88;
$custom-light: #755bac;
$custom-dark: #000000;
JSON
{
  "hex": "#301b88",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 251.56,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33549,
    "c": 0.16683,
    "h": 281.4
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301B88

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

Preview Lab → · Contrast checker → · Palette generator →

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