#301152#301152

#301152 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.111 H 300.7°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#301152
RGBrgb(48, 17, 82)
HSLhsl(269, 66%, 19%)
HSVhsv(269, 79%, 32%)
CMYKcmyk(41.5%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.46, 30.00, -33.46)
CIE-LCHlch(13.46, 44.94, 311.87°)
OKLaboklab(26.74% 0.0568 -0.0955)
OKLCHoklch(26.74% 0.111 300.7)
XYZxyz(2.9420, 1.6384, 8.1423)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301152 #335211
analogous
#111352 #301152 #511152
triadic
#301152 #523011 #115230
tetradic
#301152 #521113 #335211 #115251
square
#301152 #521113 #335211 #115251
split-complementary
#301152 #525111 #135211
monochromatic
#0F0519 #12061F #301152 #4E1C85 #6B26B7

Accessibility & contrast

On white

15.82
#301152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#301152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301152
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301152#FFFFFF#000000##FFFFFF
##3011521.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.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: #301152;
/* rgb */ color: rgb(48, 17, 82);
/* oklch */ color: oklch(26.7% 0.111 300.7);
Tailwind
colors: {
  custom: {
    50: '#6c5283',
    500: '#301152',
    950: '#000000',
  },
}
SCSS
$custom: #301152;
$custom-light: #6c5283;
$custom-dark: #000000;
JSON
{
  "hex": "#301152",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 268.615,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2674,
    "c": 0.1111,
    "h": 300.7
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#301152
secondary
#618B34
accent
#E93F98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301152

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

Preview Lab → · Contrast checker → · Palette generator →

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