#301175#301175

#301175 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.153 H 287.3°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#301175
RGBrgb(48, 17, 117)
HSLhsl(259, 75%, 26%)
HSVhsv(259, 85%, 46%)
CMYKcmyk(59%, 85.5%, 0%, 54.1%)
CIE-LABlab(17.05, 40.13, -50.77)
CIE-LCHlch(17.05, 64.71, 308.32°)
OKLaboklab(30.33% 0.0455 -0.1462)
OKLCHoklch(30.33% 0.153 287.3)
XYZxyz(4.6293, 2.3134, 17.0288)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301175 #567511
analogous
#112475 #301175 #621175
triadic
#301175 #753011 #117530
tetradic
#301175 #751124 #567511 #117562
square
#301175 #751124 #567511 #117562
split-complementary
#301175 #756211 #247511
monochromatic
#0B041B #1A0940 #301175 #4619AA #5C22DF

Accessibility & contrast

On white

14.36
#301175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#301175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301175
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301175#FFFFFF#000000##FFFFFF
##3011751.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#0F3044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301175;
/* rgb */ color: rgb(48, 17, 117);
/* oklch */ color: oklch(30.3% 0.153 287.3);
Tailwind
colors: {
  custom: {
    50: '#72559e',
    500: '#301175',
    950: '#000000',
  },
}
SCSS
$custom: #301175;
$custom-light: #72559e;
$custom-dark: #000000;
JSON
{
  "hex": "#301175",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 258.6,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30334,
    "c": 0.15308,
    "h": 287.3
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#301175
secondary
#87AC36
accent
#F137B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301175

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

Preview Lab → · Contrast checker → · Palette generator →

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