#301662#301662

#301662 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.125 H 292.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#301662
RGBrgb(48, 22, 98)
HSLhsl(261, 63%, 24%)
HSVhsv(261, 78%, 38%)
CMYKcmyk(51%, 77.6%, 0%, 61.6%)
CIE-LABlab(15.92, 32.01, -40.21)
CIE-LCHlch(15.92, 51.40, 308.53°)
OKLaboklab(28.95% 0.0476 -0.1153)
OKLCHoklch(28.95% 0.125 292.4)
XYZxyz(3.7098, 2.0839, 11.7597)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301662 #486216
analogous
#162262 #301662 #561662
triadic
#301662 #623016 #166230
tetradic
#301662 #621622 #486216 #166256
square
#301662 #621622 #486216 #166256
split-complementary
#301662 #625616 #226216
monochromatic
#0C0619 #180B30 #301662 #482194 #612CC6

Accessibility & contrast

On white

14.82
#301662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301662 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301662
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301662#FFFFFF#000000##FFFFFF
##3016621.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#202A3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301662;
/* rgb */ color: rgb(48, 22, 98);
/* oklch */ color: oklch(28.9% 0.125 292.4);
Tailwind
colors: {
  custom: {
    50: '#6e568f',
    500: '#301662',
    950: '#000000',
  },
}
SCSS
$custom: #301662;
$custom-light: #6e568f;
$custom-dark: #000000;
JSON
{
  "hex": "#301662",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 98
  },
  "hsl": {
    "h": 260.526,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28945,
    "c": 0.12477,
    "h": 292.4
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#301662
secondary
#79993B
accent
#E641AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301662

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

Preview Lab → · Contrast checker → · Palette generator →

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