#301889#301889

#301889 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.171 H 281.6°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#301889
RGBrgb(48, 24, 137)
HSLhsl(253, 70%, 32%)
HSVhsv(253, 82%, 54%)
CMYKcmyk(65%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.39, 42.89, -57.97)
CIE-LCHlch(20.39, 72.11, 306.50°)
OKLaboklab(33.31% 0.0343 -0.1673)
OKLCHoklch(33.31% 0.171 281.6)
XYZxyz(6.0595, 3.0873, 23.9387)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301889 #718918
analogous
#183989 #301889 #691889
triadic
#301889 #893018 #188930
tetradic
#301889 #891839 #718918 #188969
square
#301889 #891839 #718918 #188969
split-complementary
#301889 #896918 #398918
monochromatic
#0C0621 #1E0F55 #301889 #4221BD #603EDD

Accessibility & contrast

On white

12.98
#301889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301889
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301889#FFFFFF#000000##FFFFFF
##3018891.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301889;
/* rgb */ color: rgb(48, 24, 137);
/* oklch */ color: oklch(33.3% 0.171 281.6);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#301889',
    950: '#000000',
  },
}
SCSS
$custom: #301889;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#301889",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 252.743,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33306,
    "c": 0.17074,
    "h": 281.6
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301889

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

Preview Lab → · Contrast checker → · Palette generator →

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