#301251#301251

#301251 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.109 H 301.0°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#301251
RGBrgb(48, 18, 81)
HSLhsl(269, 64%, 19%)
HSVhsv(269, 78%, 32%)
CMYKcmyk(40.7%, 77.8%, 0%, 68.2%)
CIE-LABlab(13.56, 29.18, -32.62)
CIE-LCHlch(13.56, 43.76, 311.81°)
OKLaboklab(26.78% 0.0559 -0.093)
OKLCHoklch(26.78% 0.109 301)
XYZxyz(2.9201, 1.6551, 7.9486)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301251 #335112
analogous
#121451 #301251 #501251
triadic
#301251 #513012 #125130
tetradic
#301251 #511214 #335112 #125150
square
#301251 #511214 #335112 #125150
split-complementary
#301251 #515012 #145112
monochromatic
#0F0619 #12071F #301251 #4E1D83 #6B28B5

Accessibility & contrast

On white

15.78
#301251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301251
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301251#FFFFFF#000000##FFFFFF
##3012511.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#292130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301251;
/* rgb */ color: rgb(48, 18, 81);
/* oklch */ color: oklch(26.8% 0.109 301.0);
Tailwind
colors: {
  custom: {
    50: '#6c5382',
    500: '#301251',
    950: '#000000',
  },
}
SCSS
$custom: #301251;
$custom-light: #6c5382;
$custom-dark: #000000;
JSON
{
  "hex": "#301251",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 268.571,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26782,
    "c": 0.10851,
    "h": 301
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#301251
secondary
#618A35
accent
#E74198
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #301251

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

Preview Lab → · Contrast checker → · Palette generator →

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