#301D7C#301D7C

#301D7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.150 H 283.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#301D7C
RGBrgb(48, 29, 124)
HSLhsl(252, 62%, 30%)
HSVhsv(252, 77%, 49%)
CMYKcmyk(61.3%, 76.6%, 0%, 51.4%)
CIE-LABlab(19.89, 36.26, -50.58)
CIE-LCHlch(19.89, 62.23, 305.64°)
OKLaboklab(32.54% 0.0348 -0.1457)
OKLCHoklch(32.54% 0.15 283.4)
XYZxyz(5.2953, 2.9620, 19.3576)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D7C #697C1D
analogous
#1D397C #301D7C #601D7C
triadic
#301D7C #7C301D #1D7C30
tetradic
#301D7C #7C1D39 #697C1D #1D7C60
square
#301D7C #7C1D39 #697C1D #1D7C60
split-complementary
#301D7C #7C601D #397C1D
monochromatic
#0A0619 #1D114A #301D7C #4329AE #5E41D3

Accessibility & contrast

On white

13.19
#301D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D7C
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D7C#FFFFFF#000000##FFFFFF
##301D7C1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301d7c;
/* rgb */ color: rgb(48, 29, 124);
/* oklch */ color: oklch(32.5% 0.150 283.4);
Tailwind
colors: {
  custom: {
    50: '#725ba3',
    500: '#301d7c',
    950: '#000000',
  },
}
SCSS
$custom: #301d7c;
$custom-light: #725ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#301d7c",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 252,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.32539,
    "c": 0.14985,
    "h": 283.4
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#301D7C
secondary
#9AB045
accent
#E543C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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