#301875#301875

#301875 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.146 H 286.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#301875
RGBrgb(48, 24, 117)
HSLhsl(255, 66%, 28%)
HSVhsv(255, 79%, 46%)
CMYKcmyk(59%, 79.5%, 0%, 54.1%)
CIE-LABlab(18.21, 36.77, -48.86)
CIE-LCHlch(18.21, 61.15, 306.97°)
OKLaboklab(31.14% 0.0406 -0.1407)
OKLCHoklch(31.14% 0.146 286.1)
XYZxyz(4.7555, 2.5657, 17.0708)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301875 #5D7518
analogous
#182E75 #301875 #5E1875
triadic
#301875 #753018 #187530
tetradic
#301875 #75182E #5D7518 #18755E
square
#301875 #75182E #5D7518 #18755E
split-complementary
#301875 #755E18 #2E7518
monochromatic
#0A0519 #1B0E42 #301875 #4522A8 #5C32D5

Accessibility & contrast

On white

13.88
#301875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301875
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301875#FFFFFF#000000##FFFFFF
##3018751.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301875;
/* rgb */ color: rgb(48, 24, 117);
/* oklch */ color: oklch(31.1% 0.146 286.1);
Tailwind
colors: {
  custom: {
    50: '#71589e',
    500: '#301875',
    950: '#000000',
  },
}
SCSS
$custom: #301875;
$custom-light: #71589e;
$custom-dark: #000000;
JSON
{
  "hex": "#301875",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 255.484,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31141,
    "c": 0.14641,
    "h": 286.1
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#301875
secondary
#8EAA3F
accent
#E93FBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301875

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

Preview Lab → · Contrast checker → · Palette generator →

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