#301E7C#301E7C

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

Color values

HEX#301E7C
RGBrgb(48, 30, 124)
HSLhsl(251, 61%, 30%)
HSVhsv(251, 76%, 49%)
CMYKcmyk(61.3%, 75.8%, 0%, 51.4%)
CIE-LABlab(20.09, 35.70, -50.25)
CIE-LCHlch(20.09, 61.64, 305.39°)
OKLaboklab(32.68% 0.034 -0.1448)
OKLCHoklch(32.68% 0.149 283.2)
XYZxyz(5.3202, 3.0118, 19.3659)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E7C #6A7C1E
analogous
#1E3B7C #301E7C #5F1E7C
triadic
#301E7C #7C301E #1E7C30
tetradic
#301E7C #7C1E3B #6A7C1E #1E7C5F
square
#301E7C #7C1E3B #6A7C1E #1E7C5F
split-complementary
#301E7C #7C5F1E #3B7C1E
monochromatic
#0A0619 #1D124B #301E7C #432AAD #5E43D1

Accessibility & contrast

On white

13.11
#301E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E7C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E7C#FFFFFF#000000##FFFFFF
##301E7C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301e7c;
/* rgb */ color: rgb(48, 30, 124);
/* oklch */ color: oklch(32.7% 0.149 283.2);
Tailwind
colors: {
  custom: {
    50: '#725ca3',
    500: '#301e7c',
    950: '#000000',
  },
}
SCSS
$custom: #301e7c;
$custom-light: #725ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#301e7c",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 251.489,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32681,
    "c": 0.14873,
    "h": 283.2
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#301E7C
secondary
#9BAF46
accent
#E444C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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