#301668#301668

#301668 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.132 H 290.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#301668
RGBrgb(48, 22, 104)
HSLhsl(259, 65%, 25%)
HSVhsv(259, 79%, 41%)
CMYKcmyk(53.8%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.51, 33.84, -43.20)
CIE-LCHlch(16.51, 54.88, 308.07°)
OKLaboklab(29.54% 0.046 -0.1241)
OKLCHoklch(29.54% 0.132 290.3)
XYZxyz(4.0038, 2.2015, 13.3080)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301668 #4E6816
analogous
#162568 #301668 #591668
triadic
#301668 #683016 #166830
tetradic
#301668 #681625 #4E6816 #166859
square
#301668 #681625 #4E6816 #166859
split-complementary
#301668 #685916 #256816
monochromatic
#0C0519 #190B35 #301668 #47219B #5F2BCD

Accessibility & contrast

On white

14.58
#301668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301668
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301668#FFFFFF#000000##FFFFFF
##3016681.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#1C2C3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301668;
/* rgb */ color: rgb(48, 22, 104);
/* oklch */ color: oklch(29.5% 0.132 290.3);
Tailwind
colors: {
  custom: {
    50: '#6f5694',
    500: '#301668',
    950: '#000000',
  },
}
SCSS
$custom: #301668;
$custom-light: #6f5694;
$custom-dark: #000000;
JSON
{
  "hex": "#301668",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 259.024,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29541,
    "c": 0.13236,
    "h": 290.3
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#301668
secondary
#7F9F3B
accent
#E840B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301668

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

Preview Lab → · Contrast checker → · Palette generator →

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