#301975#301975

#301975 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.145 H 285.9°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#301975
RGBrgb(48, 25, 117)
HSLhsl(255, 65%, 28%)
HSVhsv(255, 79%, 46%)
CMYKcmyk(59%, 78.6%, 0%, 54.1%)
CIE-LABlab(18.40, 36.24, -48.55)
CIE-LCHlch(18.40, 60.59, 306.74°)
OKLaboklab(31.27% 0.0398 -0.1398)
OKLCHoklch(31.27% 0.145 285.9)
XYZxyz(4.7765, 2.6077, 17.0778)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301975 #5E7519
analogous
#193075 #301975 #5E1975
triadic
#301975 #753019 #197530
tetradic
#301975 #751930 #5E7519 #19755E
square
#301975 #751930 #5E7519 #19755E
split-complementary
#301975 #755E19 #307519
monochromatic
#0A0519 #1B0E43 #301975 #4524A7 #5C35D4

Accessibility & contrast

On white

13.80
#301975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301975
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301975#FFFFFF#000000##FFFFFF
##3019751.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#0E3346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301975;
/* rgb */ color: rgb(48, 25, 117);
/* oklch */ color: oklch(31.3% 0.145 285.9);
Tailwind
colors: {
  custom: {
    50: '#71599e',
    500: '#301975',
    950: '#000000',
  },
}
SCSS
$custom: #301975;
$custom-light: #71599e;
$custom-dark: #000000;
JSON
{
  "hex": "#301975",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 255,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31271,
    "c": 0.14534,
    "h": 285.9
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#301975
secondary
#8FAA40
accent
#E840BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301975

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

Preview Lab → · Contrast checker → · Palette generator →

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