#301D7E#301D7E

#301D7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.152 H 283.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#301D7E
RGBrgb(48, 29, 126)
HSLhsl(252, 63%, 30%)
HSVhsv(252, 77%, 49%)
CMYKcmyk(61.9%, 77%, 0%, 50.6%)
CIE-LABlab(20.10, 36.90, -51.51)
CIE-LCHlch(20.10, 63.37, 305.62°)
OKLaboklab(32.75% 0.0343 -0.1485)
OKLCHoklch(32.75% 0.152 283)
XYZxyz(5.4230, 3.0131, 20.0304)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D7E #6B7E1D
analogous
#1D3A7E #301D7E #611D7E
triadic
#301D7E #7E301D #1D7E30
tetradic
#301D7E #7E1D3A #6B7E1D #1D7E61
square
#301D7E #7E1D3A #6B7E1D #1D7E61
split-complementary
#301D7E #7E611D #3A7E1D
monochromatic
#0A061B #1D124C #301D7E #4328B0 #5E42D3

Accessibility & contrast

On white

13.10
#301D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D7E
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D7E#FFFFFF#000000##FFFFFF
##301D7E1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301d7e;
/* rgb */ color: rgb(48, 29, 126);
/* oklch */ color: oklch(32.7% 0.152 283.0);
Tailwind
colors: {
  custom: {
    50: '#735ba4',
    500: '#301d7e',
    950: '#000000',
  },
}
SCSS
$custom: #301d7e;
$custom-light: #735ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#301d7e",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 251.753,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32746,
    "c": 0.15239,
    "h": 283
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#301D7E
secondary
#9CB145
accent
#E642C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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