#301062#301062

#301062 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.132 H 293.8°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#301062
RGBrgb(48, 16, 98)
HSLhsl(263, 72%, 22%)
HSVhsv(263, 84%, 38%)
CMYKcmyk(51%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.85, 35.08, -41.97)
CIE-LCHlch(14.85, 54.70, 309.89°)
OKLaboklab(28.19% 0.0531 -0.1204)
OKLCHoklch(28.19% 0.132 293.8)
XYZxyz(3.6082, 1.8807, 11.7258)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301062 #426210
analogous
#101962 #301062 #591062
triadic
#301062 #623010 #106230
tetradic
#301062 #621019 #426210 #106259
square
#301062 #621019 #426210 #106259
split-complementary
#301062 #625910 #196210
monochromatic
#0D041A #16072D #301062 #4A1997 #6421CB

Accessibility & contrast

On white

15.26
#301062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301062
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301062#FFFFFF#000000##FFFFFF
##3010621.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#212739
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301062;
/* rgb */ color: rgb(48, 16, 98);
/* oklch */ color: oklch(28.2% 0.132 293.8);
Tailwind
colors: {
  custom: {
    50: '#6f538f',
    500: '#301062',
    950: '#000000',
  },
}
SCSS
$custom: #301062;
$custom-light: #6f538f;
$custom-dark: #000000;
JSON
{
  "hex": "#301062",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 263.415,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28192,
    "c": 0.13161,
    "h": 293.8
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#301062
secondary
#729B33
accent
#EF39A8
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #301062

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

Preview Lab → · Contrast checker → · Palette generator →

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