#301789#301789

#301789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.172 H 281.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#301789
RGBrgb(48, 23, 137)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 54%)
CMYKcmyk(65%, 83.2%, 0%, 46.3%)
CIE-LABlab(20.23, 43.35, -58.23)
CIE-LCHlch(20.23, 72.60, 306.67°)
OKLaboklab(33.2% 0.0348 -0.168)
OKLCHoklch(33.2% 0.172 281.7)
XYZxyz(6.0393, 3.0469, 23.9319)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301789 #708917
analogous
#173789 #301789 #691789
triadic
#301789 #893017 #178930
tetradic
#301789 #891737 #708917 #178969
square
#301789 #891737 #708917 #178969
split-complementary
#301789 #896917 #378917
monochromatic
#0B0520 #1E0E55 #301789 #4220BD #603CDE

Accessibility & contrast

On white

13.05
#301789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301789
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301789#FFFFFF#000000##FFFFFF
##3017891.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301789;
/* rgb */ color: rgb(48, 23, 137);
/* oklch */ color: oklch(33.2% 0.172 281.7);
Tailwind
colors: {
  custom: {
    50: '#7659ad',
    500: '#301789',
    950: '#000000',
  },
}
SCSS
$custom: #301789;
$custom-light: #7659ad;
$custom-dark: #000000;
JSON
{
  "hex": "#301789",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 253.158,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33196,
    "c": 0.17158,
    "h": 281.7
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#301789
secondary
#A1BD3F
accent
#EE3AC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301789

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

Preview Lab → · Contrast checker → · Palette generator →

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