#301589#301589

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

Color values

HEX#301589
RGBrgb(48, 21, 137)
HSLhsl(254, 73%, 31%)
HSVhsv(254, 85%, 54%)
CMYKcmyk(65%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.93, 44.25, -58.74)
CIE-LCHlch(19.93, 73.54, 306.99°)
OKLaboklab(32.99% 0.0359 -0.1695)
OKLCHoklch(32.99% 0.173 282)
XYZxyz(6.0010, 2.9704, 23.9192)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301589 #6E8915
analogous
#153489 #301589 #6A1589
triadic
#301589 #893015 #158930
tetradic
#301589 #891534 #6E8915 #15896A
square
#301589 #891534 #6E8915 #15896A
split-complementary
#301589 #896A15 #348915
monochromatic
#0B051F #1D0D54 #301589 #431DBE #5F38E0

Accessibility & contrast

On white

13.17
#301589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301589
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301589#FFFFFF#000000##FFFFFF
##3015891.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301589;
/* rgb */ color: rgb(48, 21, 137);
/* oklch */ color: oklch(33.0% 0.173 282.0);
Tailwind
colors: {
  custom: {
    50: '#7658ad',
    500: '#301589',
    950: '#000000',
  },
}
SCSS
$custom: #301589;
$custom-light: #7658ad;
$custom-dark: #000000;
JSON
{
  "hex": "#301589",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 253.966,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32985,
    "c": 0.17321,
    "h": 282
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#301589
secondary
#9FBD3D
accent
#F038C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301589

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

Preview Lab → · Contrast checker → · Palette generator →

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