#301052#301052

#301052 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.112 H 301.0°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#301052
RGBrgb(48, 16, 82)
HSLhsl(269, 67%, 19%)
HSVhsv(269, 80%, 32%)
CMYKcmyk(41.5%, 80.5%, 0%, 67.8%)
CIE-LABlab(13.28, 30.51, -33.76)
CIE-LCHlch(13.28, 45.51, 312.11°)
OKLaboklab(26.61% 0.0579 -0.0963)
OKLCHoklch(26.61% 0.112 301)
XYZxyz(2.9268, 1.6081, 8.1372)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301052 #325210
analogous
#101152 #301052 #511052
triadic
#301052 #523010 #105230
tetradic
#301052 #521011 #325210 #105251
square
#301052 #521011 #325210 #105251
split-complementary
#301052 #525110 #115210
monochromatic
#0F051A #12061F #301052 #4E1A85 #6C24B8

Accessibility & contrast

On white

15.89
#301052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#301052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301052
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301052#FFFFFF#000000##FFFFFF
##3010521.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#282130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301052;
/* rgb */ color: rgb(48, 16, 82);
/* oklch */ color: oklch(26.6% 0.112 301.0);
Tailwind
colors: {
  custom: {
    50: '#6c5283',
    500: '#301052',
    950: '#000000',
  },
}
SCSS
$custom: #301052;
$custom-light: #6c5283;
$custom-dark: #000000;
JSON
{
  "hex": "#301052",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 269.091,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2661,
    "c": 0.1124,
    "h": 301
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#301052
secondary
#608C32
accent
#EA3E97
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301052

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

Preview Lab → · Contrast checker → · Palette generator →

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