#301575#301575

#301575 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.149 H 286.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#301575
RGBrgb(48, 21, 117)
HSLhsl(257, 70%, 27%)
HSVhsv(257, 82%, 46%)
CMYKcmyk(59%, 82.1%, 0%, 54.1%)
CIE-LABlab(17.69, 38.29, -49.72)
CIE-LCHlch(17.69, 62.76, 307.60°)
OKLaboklab(30.77% 0.0428 -0.1432)
OKLCHoklch(30.77% 0.149 286.6)
XYZxyz(4.6970, 2.4488, 17.0513)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301575 #5A7515
analogous
#152A75 #301575 #601575
triadic
#301575 #753015 #157530
tetradic
#301575 #75152A #5A7515 #157560
square
#301575 #75152A #5A7515 #157560
split-complementary
#301575 #756015 #2A7515
monochromatic
#0B051A #1B0C41 #301575 #451EA9 #5C2BD9

Accessibility & contrast

On white

14.10
#301575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301575
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301575#FFFFFF#000000##FFFFFF
##3015751.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#0F3145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301575;
/* rgb */ color: rgb(48, 21, 117);
/* oklch */ color: oklch(30.8% 0.149 286.6);
Tailwind
colors: {
  custom: {
    50: '#72569e',
    500: '#301575',
    950: '#000000',
  },
}
SCSS
$custom: #301575;
$custom-light: #72569e;
$custom-dark: #000000;
JSON
{
  "hex": "#301575",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 256.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30772,
    "c": 0.14944,
    "h": 286.6
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#301575
secondary
#8BAB3B
accent
#EC3BBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301575

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

Preview Lab → · Contrast checker → · Palette generator →

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