#301B7F#301B7F

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

Color values

HEX#301B7F
RGBrgb(48, 27, 127)
HSLhsl(253, 65%, 30%)
HSVhsv(253, 79%, 50%)
CMYKcmyk(62.2%, 78.7%, 0%, 50.2%)
CIE-LABlab(19.82, 38.30, -52.60)
CIE-LCHlch(19.82, 65.07, 306.06°)
OKLaboklab(32.58% 0.0355 -0.1516)
OKLCHoklch(32.58% 0.156 283.2)
XYZxyz(5.4404, 2.9442, 20.3562)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B7F #6A7F1B
analogous
#1B387F #301B7F #621B7F
triadic
#301B7F #7F301B #1B7F30
tetradic
#301B7F #7F1B38 #6A7F1B #1B7F62
square
#301B7F #7F1B38 #6A7F1B #1B7F62
split-complementary
#301B7F #7F621B #387F1B
monochromatic
#0A061A #1D104D #301B7F #4326B1 #5E3ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301B7F#FFFFFF#000000##FFFFFF
##301B7F1.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)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301b7f;
/* rgb */ color: rgb(48, 27, 127);
/* oklch */ color: oklch(32.6% 0.156 283.2);
Tailwind
colors: {
  custom: {
    50: '#735aa5',
    500: '#301b7f',
    950: '#000000',
  },
}
SCSS
$custom: #301b7f;
$custom-light: #735aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#301b7f",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 252.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32583,
    "c": 0.15575,
    "h": 283.2
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#301B7F
secondary
#9BB343
accent
#E840C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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