#301266#301266

#301266 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.134 H 291.9°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#301266
RGBrgb(48, 18, 102)
HSLhsl(261, 70%, 24%)
HSVhsv(261, 82%, 40%)
CMYKcmyk(52.9%, 82.4%, 0%, 60%)
CIE-LABlab(15.59, 35.28, -43.39)
CIE-LCHlch(15.59, 55.93, 309.12°)
OKLaboklab(28.84% 0.0501 -0.1246)
OKLCHoklch(28.84% 0.134 291.9)
XYZxyz(3.8328, 2.0202, 12.7558)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301266 #486612
analogous
#121E66 #301266 #5A1266
triadic
#301266 #663012 #126630
tetradic
#301266 #66121E #486612 #12665A
square
#301266 #66121E #486612 #12665A
split-complementary
#301266 #665A12 #1E6612
monochromatic
#0C051A #180932 #301266 #481B9A #6124CE

Accessibility & contrast

On white

14.96
#301266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301266
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301266#FFFFFF#000000##FFFFFF
##3012661.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#1E2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301266;
/* rgb */ color: rgb(48, 18, 102);
/* oklch */ color: oklch(28.8% 0.134 291.9);
Tailwind
colors: {
  custom: {
    50: '#6f5492',
    500: '#301266',
    950: '#000000',
  },
}
SCSS
$custom: #301266;
$custom-light: #6f5492;
$custom-dark: #000000;
JSON
{
  "hex": "#301266",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 261.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28836,
    "c": 0.13431,
    "h": 291.9
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#301266
secondary
#799E36
accent
#ED3BAD
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301266

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

Preview Lab → · Contrast checker → · Palette generator →

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