#301688#301688

#301688 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.171 H 282.0°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#301688
RGBrgb(48, 22, 136)
HSLhsl(254, 72%, 31%)
HSVhsv(254, 84%, 53%)
CMYKcmyk(64.7%, 83.8%, 0%, 46.7%)
CIE-LABlab(19.96, 43.51, -58.05)
CIE-LCHlch(19.96, 72.55, 306.85°)
OKLaboklab(32.98% 0.0357 -0.1675)
OKLCHoklch(32.98% 0.171 282)
XYZxyz(5.9484, 2.9793, 23.5494)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301688 #6E8816
analogous
#163588 #301688 #691688
triadic
#301688 #883016 #168830
tetradic
#301688 #881635 #6E8816 #168869
square
#301688 #881635 #6E8816 #168869
split-complementary
#301688 #886916 #358816
monochromatic
#0B051F #1D0D53 #301688 #431FBD #5F39DF

Accessibility & contrast

On white

13.16
#301688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301688
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301688#FFFFFF#000000##FFFFFF
##3016881.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301688;
/* rgb */ color: rgb(48, 22, 136);
/* oklch */ color: oklch(33.0% 0.171 282.0);
Tailwind
colors: {
  custom: {
    50: '#7558ac',
    500: '#301688',
    950: '#000000',
  },
}
SCSS
$custom: #301688;
$custom-light: #7558ac;
$custom-dark: #000000;
JSON
{
  "hex": "#301688",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 253.684,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.17123,
    "h": 282
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#301688
secondary
#9FBC3E
accent
#EF39C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301688

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

Preview Lab → · Contrast checker → · Palette generator →

#301688 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva