#301552#301552

#301552 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.106 H 299.6°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#301552
RGBrgb(48, 21, 82)
HSLhsl(267, 59%, 20%)
HSVhsv(267, 74%, 32%)
CMYKcmyk(41.5%, 74.4%, 0%, 67.8%)
CIE-LABlab(14.25, 27.78, -32.18)
CIE-LCHlch(14.25, 42.51, 310.81°)
OKLaboklab(27.3% 0.0522 -0.0917)
OKLCHoklch(27.3% 0.106 299.6)
XYZxyz(3.0097, 1.7739, 8.1648)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301552 #375215
analogous
#151952 #301552 #4E1552
triadic
#301552 #523015 #155230
tetradic
#301552 #521519 #375215 #15524E
square
#301552 #521519 #375215 #15524E
split-complementary
#301552 #524E15 #195215
monochromatic
#0E0618 #130921 #301552 #4D2183 #692EB3

Accessibility & contrast

On white

15.50
#301552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301552
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301552#FFFFFF#000000##FFFFFF
##3015521.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#282331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301552;
/* rgb */ color: rgb(48, 21, 82);
/* oklch */ color: oklch(27.3% 0.106 299.6);
Tailwind
colors: {
  custom: {
    50: '#6c5483',
    500: '#301552',
    950: '#000000',
  },
}
SCSS
$custom: #301552;
$custom-light: #6c5483;
$custom-dark: #000000;
JSON
{
  "hex": "#301552",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 266.557,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27302,
    "c": 0.10552,
    "h": 299.6
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

primary
#301552
secondary
#668A39
accent
#E2459D
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301552

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

Preview Lab → · Contrast checker → · Palette generator →

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