#301C7D#301C7D

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

Color values

HEX#301C7D
RGBrgb(48, 28, 125)
HSLhsl(252, 63%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(61.6%, 77.6%, 0%, 51%)
CIE-LABlab(19.80, 37.13, -51.37)
CIE-LCHlch(19.80, 63.38, 305.86°)
OKLaboklab(32.51% 0.0353 -0.148)
OKLCHoklch(32.51% 0.152 283.4)
XYZxyz(5.3347, 2.9392, 19.6843)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C7D #697D1C
analogous
#1C397D #301C7D #601C7D
triadic
#301C7D #7D301C #1C7D30
tetradic
#301C7D #7D1C39 #697D1C #1C7D60
square
#301C7D #7D1C39 #697D1C #1C7D60
split-complementary
#301C7D #7D601C #397D1C
monochromatic
#0A0619 #1D114B #301C7D #4327AF #5E3FD4

Accessibility & contrast

On white

13.22
#301C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C7D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C7D#FFFFFF#000000##FFFFFF
##301C7D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301c7d;
/* rgb */ color: rgb(48, 28, 125);
/* oklch */ color: oklch(32.5% 0.152 283.4);
Tailwind
colors: {
  custom: {
    50: '#735ba4',
    500: '#301c7d',
    950: '#000000',
  },
}
SCSS
$custom: #301c7d;
$custom-light: #735ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#301c7d",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 252.371,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.32505,
    "c": 0.15219,
    "h": 283.4
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#301C7D
secondary
#9AB144
accent
#E641C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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