#301876#301876

#301876 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.148 H 285.8°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#301876
RGBrgb(48, 24, 118)
HSLhsl(255, 66%, 28%)
HSVhsv(255, 80%, 46%)
CMYKcmyk(59.3%, 79.7%, 0%, 53.7%)
CIE-LABlab(18.32, 37.08, -49.33)
CIE-LCHlch(18.32, 61.71, 306.93°)
OKLaboklab(31.25% 0.0403 -0.142)
OKLCHoklch(31.25% 0.148 285.8)
XYZxyz(4.8146, 2.5894, 17.3821)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301876 #5E7618
analogous
#182F76 #301876 #5F1876
triadic
#301876 #763018 #187630
tetradic
#301876 #76182F #5E7618 #18765F
square
#301876 #76182F #5E7618 #18765F
split-complementary
#301876 #765F18 #2F7618
monochromatic
#0A0519 #1B0E43 #301876 #4522A9 #5C33D5

Accessibility & contrast

On white

13.83
#301876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301876
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301876#FFFFFF#000000##FFFFFF
##3018761.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#0D3346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301876;
/* rgb */ color: rgb(48, 24, 118);
/* oklch */ color: oklch(31.2% 0.148 285.8);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#301876',
    950: '#000000',
  },
}
SCSS
$custom: #301876;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#301876",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 255.319,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31246,
    "c": 0.14764,
    "h": 285.8
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#301876
secondary
#8FAB3F
accent
#E93FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301876

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

Preview Lab → · Contrast checker → · Palette generator →

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