#301E7E#301E7E

#301E7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.151 H 282.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#301E7E
RGBrgb(48, 30, 126)
HSLhsl(251, 62%, 31%)
HSVhsv(251, 76%, 49%)
CMYKcmyk(61.9%, 76.2%, 0%, 50.6%)
CIE-LABlab(20.29, 36.34, -51.19)
CIE-LCHlch(20.29, 62.78, 305.37°)
OKLaboklab(32.89% 0.0335 -0.1475)
OKLCHoklch(32.89% 0.151 282.8)
XYZxyz(5.4479, 3.0629, 20.0387)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E7E #6C7E1E
analogous
#1E3C7E #301E7E #601E7E
triadic
#301E7E #7E301E #1E7E30
tetradic
#301E7E #7E1E3C #6C7E1E #1E7E60
square
#301E7E #7E1E3C #6C7E1E #1E7E60
split-complementary
#301E7E #7E601E #3C7E1E
monochromatic
#0A061B #1D124D #301E7E #432AAF #5F44D2

Accessibility & contrast

On white

13.02
#301E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E7E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E7E#FFFFFF#000000##FFFFFF
##301E7E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301e7e;
/* rgb */ color: rgb(48, 30, 126);
/* oklch */ color: oklch(32.9% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#735ca4',
    500: '#301e7e',
    950: '#000000',
  },
}
SCSS
$custom: #301e7e;
$custom-light: #735ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#301e7e",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 251.25,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32886,
    "c": 0.15129,
    "h": 282.8
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#301E7E
secondary
#9DB147
accent
#E543C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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