#301671#301671

#301671 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.144 H 287.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#301671
RGBrgb(48, 22, 113)
HSLhsl(257, 67%, 26%)
HSVhsv(257, 81%, 44%)
CMYKcmyk(57.5%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.43, 36.58, -47.56)
CIE-LCHlch(17.43, 60.00, 307.57°)
OKLaboklab(30.47% 0.0434 -0.1368)
OKLCHoklch(30.47% 0.144 287.6)
XYZxyz(4.4856, 2.3942, 15.8454)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301671 #577116
analogous
#162A71 #301671 #5E1671
triadic
#301671 #713016 #167130
tetradic
#301671 #71162A #577116 #16715E
square
#301671 #71162A #577116 #16715E
split-complementary
#301671 #715E16 #2A7116
monochromatic
#0B051A #1A0C3E #301671 #4620A4 #5C2CD6

Accessibility & contrast

On white

14.20
#301671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301671
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301671#FFFFFF#000000##FFFFFF
##3016711.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#143043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301671;
/* rgb */ color: rgb(48, 22, 113);
/* oklch */ color: oklch(30.5% 0.144 287.6);
Tailwind
colors: {
  custom: {
    50: '#71579b',
    500: '#301671',
    950: '#000000',
  },
}
SCSS
$custom: #301671;
$custom-light: #71579b;
$custom-dark: #000000;
JSON
{
  "hex": "#301671",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 257.143,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30468,
    "c": 0.14355,
    "h": 287.6
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#301671
secondary
#88A73C
accent
#EA3EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301671

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

Preview Lab → · Contrast checker → · Palette generator →

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