#301681#301681

#301681 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.163 H 283.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#301681
RGBrgb(48, 22, 129)
HSLhsl(255, 71%, 30%)
HSVhsv(255, 83%, 51%)
CMYKcmyk(62.8%, 82.9%, 0%, 49.4%)
CIE-LABlab(19.17, 41.42, -54.94)
CIE-LCHlch(19.17, 68.81, 307.01°)
OKLaboklab(32.2% 0.0381 -0.1584)
OKLCHoklch(32.2% 0.163 283.5)
XYZxyz(5.4671, 2.7868, 21.0144)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301681 #678116
analogous
#163281 #301681 #651681
triadic
#301681 #813016 #168130
tetradic
#301681 #811632 #678116 #168165
square
#301681 #811632 #678116 #168165
split-complementary
#301681 #816516 #328116
monochromatic
#0A041A #1D0D4D #301681 #431FB5 #5E35DD

Accessibility & contrast

On white

13.48
#301681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301681
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301681#FFFFFF#000000##FFFFFF
##3016811.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301681;
/* rgb */ color: rgb(48, 22, 129);
/* oklch */ color: oklch(32.2% 0.163 283.5);
Tailwind
colors: {
  custom: {
    50: '#7458a7',
    500: '#301681',
    950: '#000000',
  },
}
SCSS
$custom: #301681;
$custom-light: #7458a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301681",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 254.579,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32195,
    "c": 0.16294,
    "h": 283.5
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#301681
secondary
#98B63D
accent
#EE3AC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301681

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

Preview Lab → · Contrast checker → · Palette generator →

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