#301E52#301E52

#301E52 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.091 H 296.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#301E52
RGBrgb(48, 30, 82)
HSLhsl(261, 46%, 22%)
HSVhsv(261, 63%, 32%)
CMYKcmyk(41.5%, 63.4%, 0%, 67.8%)
CIE-LABlab(16.34, 22.17, -28.81)
CIE-LCHlch(16.34, 36.35, 307.58°)
OKLaboklab(28.81% 0.0402 -0.0819)
OKLCHoklch(28.81% 0.091 296.2)
XYZxyz(3.2058, 2.1661, 8.2302)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E52 #40521E
analogous
#1E2652 #301E52 #4A1E52
triadic
#301E52 #52301E #1E5230
tetradic
#301E52 #521E26 #40521E #1E524A
square
#301E52 #521E26 #40521E #1E524A
split-complementary
#301E52 #524A1E #26521E
monochromatic
#0D0816 #160E25 #301E52 #4A2E7F #643FAC

Accessibility & contrast

On white

14.65
#301E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#301E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E52
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E52#FFFFFF#000000##FFFFFF
##301E521.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032954
Deuteranopia (green-blind)
#092851
Tritanopia (blue-blind)
#282934
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301e52;
/* rgb */ color: rgb(48, 30, 82);
/* oklch */ color: oklch(28.8% 0.091 296.2);
Tailwind
colors: {
  custom: {
    50: '#6b5a83',
    500: '#301e52',
    950: '#000000',
  },
}
SCSS
$custom: #301e52;
$custom-light: #6b5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#301e52",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 260.769,
    "s": 46.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28812,
    "c": 0.09119,
    "h": 296.2
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#301E52
secondary
#708745
accent
#D652A8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #301E52

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

Preview Lab → · Contrast checker → · Palette generator →

#301E52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva