#301A7F#301A7F

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

Color values

HEX#301A7F
RGBrgb(48, 26, 127)
HSLhsl(253, 66%, 30%)
HSVhsv(253, 80%, 50%)
CMYKcmyk(62.2%, 79.5%, 0%, 50.2%)
CIE-LABlab(19.64, 38.83, -52.91)
CIE-LCHlch(19.64, 65.63, 306.27°)
OKLaboklab(32.45% 0.0362 -0.1525)
OKLCHoklch(32.45% 0.157 283.3)
XYZxyz(5.4179, 2.8991, 20.3486)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A7F #697F1A
analogous
#1A377F #301A7F #621A7F
triadic
#301A7F #7F301A #1A7F30
tetradic
#301A7F #7F1A37 #697F1A #1A7F62
square
#301A7F #7F1A37 #697F1A #1A7F62
split-complementary
#301A7F #7F621A #377F1A
monochromatic
#0A0519 #1D104C #301A7F #4324B2 #5E3CD7

Accessibility & contrast

On white

13.29
#301A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A7F
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A7F#FFFFFF#000000##FFFFFF
##301A7F1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301a7f;
/* rgb */ color: rgb(48, 26, 127);
/* oklch */ color: oklch(32.5% 0.157 283.3);
Tailwind
colors: {
  custom: {
    50: '#735aa5',
    500: '#301a7f',
    950: '#000000',
  },
}
SCSS
$custom: #301a7f;
$custom-light: #735aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#301a7f",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 253.069,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.15675,
    "h": 283.3
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#301A7F
secondary
#9AB342
accent
#E93FC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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