#301752#301752

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

Color values

HEX#301752
RGBrgb(48, 23, 82)
HSLhsl(265, 56%, 21%)
HSVhsv(265, 72%, 32%)
CMYKcmyk(41.5%, 72%, 0%, 67.8%)
CIE-LABlab(14.68, 26.60, -31.48)
CIE-LCHlch(14.68, 41.22, 310.20°)
OKLaboklab(27.61% 0.0497 -0.0897)
OKLCHoklch(27.61% 0.103 299)
XYZxyz(3.0479, 1.8503, 8.1776)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301752 #395217
analogous
#171B52 #301752 #4D1752
triadic
#301752 #523017 #175230
tetradic
#301752 #52171B #395217 #17524D
square
#301752 #52171B #395217 #17524D
split-complementary
#301752 #524D17 #1B5217
monochromatic
#0E0718 #140A22 #301752 #4C2482 #6832B2

Accessibility & contrast

On white

15.33
#301752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301752
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301752#FFFFFF#000000##FFFFFF
##3017521.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#282532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301752;
/* rgb */ color: rgb(48, 23, 82);
/* oklch */ color: oklch(27.6% 0.103 299.0);
Tailwind
colors: {
  custom: {
    50: '#6c5683',
    500: '#301752',
    950: '#000000',
  },
}
SCSS
$custom: #301752;
$custom-light: #6c5683;
$custom-dark: #000000;
JSON
{
  "hex": "#301752",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 265.424,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27609,
    "c": 0.10252,
    "h": 299
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#301752
secondary
#68893C
accent
#DF489F
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301752

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

Preview Lab → · Contrast checker → · Palette generator →

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