#301B7D#301B7D

#301B7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.153 H 283.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#301B7D
RGBrgb(48, 27, 125)
HSLhsl(253, 64%, 30%)
HSVhsv(253, 78%, 49%)
CMYKcmyk(61.6%, 78.4%, 0%, 51%)
CIE-LABlab(19.61, 37.67, -51.68)
CIE-LCHlch(19.61, 63.95, 306.09°)
OKLaboklab(32.37% 0.036 -0.1489)
OKLCHoklch(32.37% 0.153 283.6)
XYZxyz(5.3114, 2.8926, 19.6765)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B7D #687D1B
analogous
#1B377D #301B7D #611B7D
triadic
#301B7D #7D301B #1B7D30
tetradic
#301B7D #7D1B37 #687D1B #1B7D61
square
#301B7D #7D1B37 #687D1B #1B7D61
split-complementary
#301B7D #7D611B #377D1B
monochromatic
#0A0519 #1D104B #301B7D #4326AF #5E3DD5

Accessibility & contrast

On white

13.30
#301B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B7D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B7D#FFFFFF#000000##FFFFFF
##301B7D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301b7d;
/* rgb */ color: rgb(48, 27, 125);
/* oklch */ color: oklch(32.4% 0.153 283.6);
Tailwind
colors: {
  custom: {
    50: '#735aa4',
    500: '#301b7d',
    950: '#000000',
  },
}
SCSS
$custom: #301b7d;
$custom-light: #735aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#301b7d",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 252.857,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32372,
    "c": 0.15325,
    "h": 283.6
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#301B7D
secondary
#99B143
accent
#E740C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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