#301648#301648

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

Color values

HEX#301648
RGBrgb(48, 22, 72)
HSLhsl(271, 53%, 18%)
HSVhsv(271, 69%, 28%)
CMYKcmyk(33.3%, 69.4%, 0%, 71.8%)
CIE-LABlab(13.65, 24.29, -26.28)
CIE-LCHlch(13.65, 35.78, 312.75°)
OKLaboklab(26.61% 0.052 -0.0744)
OKLCHoklch(26.61% 0.091 304.9)
XYZxyz(2.6753, 1.6701, 6.3111)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301648 #2E4816
analogous
#171648 #301648 #481647
triadic
#301648 #483016 #164830
tetradic
#301648 #481716 #2E4816 #164748
square
#301648 #481716 #2E4816 #164748
split-complementary
#301648 #474816 #164817
monochromatic
#100717 #110819 #301648 #4F2477 #6F33A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301648#FFFFFF#000000##FFFFFF
##3016481.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)
#00224A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#2C202C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301648;
/* rgb */ color: rgb(48, 22, 72);
/* oklch */ color: oklch(26.6% 0.091 304.9);
Tailwind
colors: {
  custom: {
    50: '#6b557b',
    500: '#301648',
    950: '#000000',
  },
}
SCSS
$custom: #301648;
$custom-light: #6b557b;
$custom-dark: #000000;
JSON
{
  "hex": "#301648",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 72
  },
  "hsl": {
    "h": 271.2,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26609,
    "c": 0.09074,
    "h": 304.9
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#301648
secondary
#5C7F3A
accent
#DD4B91
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #301648

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

Preview Lab → · Contrast checker → · Palette generator →

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