#301352#301352

#301352 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.108 H 300.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#301352
RGBrgb(48, 19, 82)
HSLhsl(268, 62%, 20%)
HSVhsv(268, 77%, 32%)
CMYKcmyk(41.5%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.85, 28.92, -32.84)
CIE-LCHlch(13.85, 43.76, 311.37°)
OKLaboklab(27.01% 0.0545 -0.0937)
OKLCHoklch(27.01% 0.108 300.2)
XYZxyz(2.9744, 1.7033, 8.1531)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301352 #355213
analogous
#131652 #301352 #501352
triadic
#301352 #523013 #135230
tetradic
#301352 #521316 #355213 #135250
square
#301352 #521316 #355213 #135250
split-complementary
#301352 #525013 #165213
monochromatic
#0F0619 #130720 #301352 #4D1F84 #6A2AB5

Accessibility & contrast

On white

15.66
#301352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#301352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301352
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301352#FFFFFF#000000##FFFFFF
##3013521.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#282231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301352;
/* rgb */ color: rgb(48, 19, 82);
/* oklch */ color: oklch(27.0% 0.108 300.2);
Tailwind
colors: {
  custom: {
    50: '#6c5383',
    500: '#301352',
    950: '#000000',
  },
}
SCSS
$custom: #301352;
$custom-light: #6c5383;
$custom-dark: #000000;
JSON
{
  "hex": "#301352",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 267.619,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27012,
    "c": 0.10838,
    "h": 300.2
  },
  "luminance": 0.01703
}

Semantic roles & 50–950 ramp

primary
#301352
secondary
#648A36
accent
#E5429A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301352

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

Preview Lab → · Contrast checker → · Palette generator →

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