#301751#301751

#301751 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.101 H 299.5°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#301751
RGBrgb(48, 23, 81)
HSLhsl(266, 56%, 20%)
HSVhsv(266, 72%, 32%)
CMYKcmyk(40.7%, 71.6%, 0%, 68.2%)
CIE-LABlab(14.60, 26.31, -30.94)
CIE-LCHlch(14.60, 40.61, 310.38°)
OKLaboklab(27.52% 0.0498 -0.0881)
OKLCHoklch(27.52% 0.101 299.5)
XYZxyz(3.0102, 1.8352, 7.9786)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301751 #385117
analogous
#171B51 #301751 #4D1751
triadic
#301751 #513017 #175130
tetradic
#301751 #51171B #385117 #17514D
square
#301751 #51171B #385117 #17514D
split-complementary
#301751 #514D17 #1B5117
monochromatic
#0E0718 #140921 #301751 #4C2581 #6832B0

Accessibility & contrast

On white

15.36
#301751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301751
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301751#FFFFFF#000000##FFFFFF
##3017511.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#292431
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301751;
/* rgb */ color: rgb(48, 23, 81);
/* oklch */ color: oklch(27.5% 0.101 299.5);
Tailwind
colors: {
  custom: {
    50: '#6c5682',
    500: '#301751',
    950: '#000000',
  },
}
SCSS
$custom: #301751;
$custom-light: #6c5682;
$custom-dark: #000000;
JSON
{
  "hex": "#301751",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 265.862,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27523,
    "c": 0.10118,
    "h": 299.5
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#301751
secondary
#67883C
accent
#DF499E
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301751

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

Preview Lab → · Contrast checker → · Palette generator →

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