#301651#301651

#301651 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.103 H 299.8°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#301651
RGBrgb(48, 22, 81)
HSLhsl(266, 57%, 20%)
HSVhsv(266, 73%, 32%)
CMYKcmyk(40.7%, 72.8%, 0%, 68.2%)
CIE-LABlab(14.38, 26.91, -31.29)
CIE-LCHlch(14.38, 41.27, 310.69°)
OKLaboklab(27.37% 0.0511 -0.0891)
OKLCHoklch(27.37% 0.103 299.8)
XYZxyz(2.9907, 1.7962, 7.9721)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301651 #375116
analogous
#161951 #301651 #4E1651
triadic
#301651 #513016 #165130
tetradic
#301651 #511619 #375116 #16514E
square
#301651 #511619 #375116 #16514E
split-complementary
#301651 #514E16 #195116
monochromatic
#0E0718 #130921 #301651 #4D2381 #6930B1

Accessibility & contrast

On white

15.45
#301651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#301651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301651
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301651#FFFFFF#000000##FFFFFF
##3016511.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301651;
/* rgb */ color: rgb(48, 22, 81);
/* oklch */ color: oklch(27.4% 0.103 299.8);
Tailwind
colors: {
  custom: {
    50: '#6c5582',
    500: '#301651',
    950: '#000000',
  },
}
SCSS
$custom: #301651;
$custom-light: #6c5582;
$custom-dark: #000000;
JSON
{
  "hex": "#301651",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 266.441,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27366,
    "c": 0.10271,
    "h": 299.8
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#301651
secondary
#66883A
accent
#E1479D
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301651

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

Preview Lab → · Contrast checker → · Palette generator →

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