#301888#301888

#301888 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.170 H 281.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#301888
RGBrgb(48, 24, 136)
HSLhsl(253, 70%, 31%)
HSVhsv(253, 82%, 53%)
CMYKcmyk(64.7%, 82.4%, 0%, 46.7%)
CIE-LABlab(20.28, 42.58, -57.53)
CIE-LCHlch(20.28, 71.57, 306.51°)
OKLaboklab(33.2% 0.0346 -0.166)
OKLCHoklch(33.2% 0.17 281.8)
XYZxyz(5.9881, 3.0588, 23.5626)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301888 #708818
analogous
#183888 #301888 #681888
triadic
#301888 #883018 #188830
tetradic
#301888 #881838 #708818 #188868
square
#301888 #881838 #708818 #188868
split-complementary
#301888 #886818 #388818
monochromatic
#0B0620 #1E0F54 #301888 #4221BC #603EDD

Accessibility & contrast

On white

13.03
#301888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301888
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301888#FFFFFF#000000##FFFFFF
##3018881.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301888;
/* rgb */ color: rgb(48, 24, 136);
/* oklch */ color: oklch(33.2% 0.170 281.8);
Tailwind
colors: {
  custom: {
    50: '#7559ac',
    500: '#301888',
    950: '#000000',
  },
}
SCSS
$custom: #301888;
$custom-light: #7559ac;
$custom-dark: #000000;
JSON
{
  "hex": "#301888",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 252.857,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33195,
    "c": 0.16954,
    "h": 281.8
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#301888
secondary
#A1BC40
accent
#ED3BC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301888

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

Preview Lab → · Contrast checker → · Palette generator →

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