#301766#301766

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

Color values

HEX#301766
RGBrgb(48, 23, 102)
HSLhsl(259, 63%, 25%)
HSVhsv(259, 77%, 40%)
CMYKcmyk(52.9%, 77.5%, 0%, 60%)
CIE-LABlab(16.51, 32.68, -41.90)
CIE-LCHlch(16.51, 53.14, 307.96°)
OKLaboklab(29.48% 0.0456 -0.1203)
OKLCHoklch(29.48% 0.129 290.8)
XYZxyz(3.9229, 2.2003, 12.7858)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301766 #4D6617
analogous
#172666 #301766 #581766
triadic
#301766 #663017 #176630
tetradic
#301766 #661726 #4D6617 #176658
square
#301766 #661726 #4D6617 #176658
split-complementary
#301766 #665817 #266617
monochromatic
#0C0619 #180C34 #301766 #482298 #5F2ECA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301766#FFFFFF#000000##FFFFFF
##3017661.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)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1E2C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301766;
/* rgb */ color: rgb(48, 23, 102);
/* oklch */ color: oklch(29.5% 0.129 290.8);
Tailwind
colors: {
  custom: {
    50: '#6f5792',
    500: '#301766',
    950: '#000000',
  },
}
SCSS
$custom: #301766;
$custom-light: #6f5792;
$custom-dark: #000000;
JSON
{
  "hex": "#301766",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 258.987,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29477,
    "c": 0.12865,
    "h": 290.8
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#301766
secondary
#7E9C3C
accent
#E642B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301766

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

Preview Lab → · Contrast checker → · Palette generator →

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