#301661#301661

#301661 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.123 H 292.8°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#301661
RGBrgb(48, 22, 97)
HSLhsl(261, 63%, 23%)
HSVhsv(261, 77%, 38%)
CMYKcmyk(50.5%, 77.3%, 0%, 62%)
CIE-LABlab(15.83, 31.71, -39.70)
CIE-LCHlch(15.83, 50.81, 308.61°)
OKLaboklab(28.85% 0.0479 -0.1138)
OKLCHoklch(28.85% 0.124 292.8)
XYZxyz(3.6629, 2.0651, 11.5126)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301661 #476116
analogous
#162161 #301661 #551661
triadic
#301661 #613016 #166130
tetradic
#301661 #611621 #476116 #166155
square
#301661 #611621 #476116 #166155
split-complementary
#301661 #615516 #216116
monochromatic
#0C0619 #170B2F #301661 #492193 #612DC5

Accessibility & contrast

On white

14.86
#301661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301661
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301661#FFFFFF#000000##FFFFFF
##3016611.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#212A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301661;
/* rgb */ color: rgb(48, 22, 97);
/* oklch */ color: oklch(28.8% 0.123 292.8);
Tailwind
colors: {
  custom: {
    50: '#6e568f',
    500: '#301661',
    950: '#000000',
  },
}
SCSS
$custom: #301661;
$custom-light: #6e568f;
$custom-dark: #000000;
JSON
{
  "hex": "#301661",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 260.8,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28847,
    "c": 0.1235,
    "h": 292.8
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#301661
secondary
#78983B
accent
#E642AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301661

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

Preview Lab → · Contrast checker → · Palette generator →

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