#301C7F#301C7F

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

Color values

HEX#301C7F
RGBrgb(48, 28, 127)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 50%)
CMYKcmyk(62.2%, 78%, 0%, 50.2%)
CIE-LABlab(20.01, 37.77, -52.29)
CIE-LCHlch(20.01, 64.51, 305.84°)
OKLaboklab(32.71% 0.0348 -0.1507)
OKLCHoklch(32.71% 0.155 283)
XYZxyz(5.4638, 2.9908, 20.3639)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C7F #6B7F1C
analogous
#1C3A7F #301C7F #611C7F
triadic
#301C7F #7F301C #1C7F30
tetradic
#301C7F #7F1C3A #6B7F1C #1C7F61
square
#301C7F #7F1C3A #6B7F1C #1C7F61
split-complementary
#301C7F #7F611C #3A7F1C
monochromatic
#0A061B #1D114D #301C7F #4327B1 #5E40D5

Accessibility & contrast

On white

13.14
#301C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C7F
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C7F#FFFFFF#000000##FFFFFF
##301C7F1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301c7f;
/* rgb */ color: rgb(48, 28, 127);
/* oklch */ color: oklch(32.7% 0.155 283.0);
Tailwind
colors: {
  custom: {
    50: '#735ba5',
    500: '#301c7f',
    950: '#000000',
  },
}
SCSS
$custom: #301c7f;
$custom-light: #735ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#301c7f",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 252.121,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32715,
    "c": 0.15471,
    "h": 283
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#301C7F
secondary
#9CB344
accent
#E741C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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