#301666#301666

#301666 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.130 H 291.0°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#301666
RGBrgb(48, 22, 102)
HSLhsl(260, 65%, 24%)
HSVhsv(260, 78%, 40%)
CMYKcmyk(52.9%, 78.4%, 0%, 60%)
CIE-LABlab(16.31, 33.23, -42.21)
CIE-LCHlch(16.31, 53.72, 308.21°)
OKLaboklab(29.34% 0.0466 -0.1212)
OKLCHoklch(29.34% 0.13 291)
XYZxyz(3.9034, 2.1614, 12.7793)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301666 #4C6616
analogous
#162466 #301666 #581666
triadic
#301666 #663016 #166630
tetradic
#301666 #661624 #4C6616 #166658
square
#301666 #661624 #4C6616 #166658
split-complementary
#301666 #665816 #246616
monochromatic
#0C0519 #180B34 #301666 #482198 #5F2CCB

Accessibility & contrast

On white

14.66
#301666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#301666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301666
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301666#FFFFFF#000000##FFFFFF
##3016661.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1E2C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301666;
/* rgb */ color: rgb(48, 22, 102);
/* oklch */ color: oklch(29.3% 0.130 291.0);
Tailwind
colors: {
  custom: {
    50: '#6f5692',
    500: '#301666',
    950: '#000000',
  },
}
SCSS
$custom: #301666;
$custom-light: #6f5692;
$custom-dark: #000000;
JSON
{
  "hex": "#301666",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 259.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29341,
    "c": 0.12984,
    "h": 291
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#301666
secondary
#7D9D3B
accent
#E840B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301666

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

Preview Lab → · Contrast checker → · Palette generator →

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