#301C7B#301C7B

#301C7B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.150 H 283.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#301C7B
RGBrgb(48, 28, 123)
HSLhsl(253, 63%, 30%)
HSVhsv(253, 77%, 48%)
CMYKcmyk(61%, 77.2%, 0%, 51.8%)
CIE-LABlab(19.59, 36.50, -50.43)
CIE-LCHlch(19.59, 62.25, 305.89°)
OKLaboklab(32.3% 0.0358 -0.1453)
OKLCHoklch(32.3% 0.15 283.9)
XYZxyz(5.2082, 2.8886, 19.0182)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C7B #677B1C
analogous
#1C377B #301C7B #601C7B
triadic
#301C7B #7B301C #1C7B30
tetradic
#301C7B #7B1C37 #677B1C #1C7B60
square
#301C7B #7B1C37 #677B1C #1C7B60
split-complementary
#301C7B #7B601C #377B1C
monochromatic
#0A0619 #1D1149 #301C7B #4327AD #5E3ED3

Accessibility & contrast

On white

13.31
#301C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C7B
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C7B#FFFFFF#000000##FFFFFF
##301C7B1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#03374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301c7b;
/* rgb */ color: rgb(48, 28, 123);
/* oklch */ color: oklch(32.3% 0.150 283.9);
Tailwind
colors: {
  custom: {
    50: '#725ba2',
    500: '#301c7b',
    950: '#000000',
  },
}
SCSS
$custom: #301c7b;
$custom-light: #725ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#301c7b",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 252.632,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32297,
    "c": 0.14966,
    "h": 283.9
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#301C7B
secondary
#98AF44
accent
#E642C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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