#301252#301252

#301252 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.110 H 300.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#301252
RGBrgb(48, 18, 82)
HSLhsl(268, 64%, 20%)
HSVhsv(268, 78%, 32%)
CMYKcmyk(41.5%, 78%, 0%, 67.8%)
CIE-LABlab(13.65, 29.46, -33.16)
CIE-LCHlch(13.65, 44.35, 311.62°)
OKLaboklab(26.87% 0.0557 -0.0946)
OKLCHoklch(26.87% 0.11 300.5)
XYZxyz(2.9578, 1.6702, 8.1475)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301252 #345212
analogous
#121452 #301252 #501252
triadic
#301252 #523012 #125230
tetradic
#301252 #521214 #345212 #125250
square
#301252 #521214 #345212 #125250
split-complementary
#301252 #525012 #145212
monochromatic
#0F0619 #130720 #301252 #4D1D84 #6B28B6

Accessibility & contrast

On white

15.74
#301252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301252
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301252#FFFFFF#000000##FFFFFF
##3012521.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301252;
/* rgb */ color: rgb(48, 18, 82);
/* oklch */ color: oklch(26.9% 0.110 300.5);
Tailwind
colors: {
  custom: {
    50: '#6c5383',
    500: '#301252',
    950: '#000000',
  },
}
SCSS
$custom: #301252;
$custom-light: #6c5383;
$custom-dark: #000000;
JSON
{
  "hex": "#301252",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 268.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26873,
    "c": 0.10975,
    "h": 300.5
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#301252
secondary
#638B35
accent
#E74199
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301252

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

Preview Lab → · Contrast checker → · Palette generator →

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