#301B72#301B72

#301B72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.139 H 286.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#301B72
RGBrgb(48, 27, 114)
HSLhsl(254, 62%, 28%)
HSVhsv(254, 76%, 45%)
CMYKcmyk(57.9%, 76.3%, 0%, 55.3%)
CIE-LABlab(18.48, 34.20, -46.48)
CIE-LCHlch(18.48, 57.70, 306.35°)
OKLaboklab(31.24% 0.039 -0.1337)
OKLCHoklch(31.24% 0.139 286.2)
XYZxyz(4.6472, 2.6269, 16.1785)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B72 #5D721B
analogous
#1B3172 #301B72 #5C1B72
triadic
#301B72 #72301B #1B7230
tetradic
#301B72 #721B31 #5D721B #1B725C
square
#301B72 #721B31 #5D721B #1B725C
split-complementary
#301B72 #725C1B #31721B
monochromatic
#0A0619 #1B0F41 #301B72 #4527A3 #5C38D0

Accessibility & contrast

On white

13.77
#301B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B72
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B72#FFFFFF#000000##FFFFFF
##301B721.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#123345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301b72;
/* rgb */ color: rgb(48, 27, 114);
/* oklch */ color: oklch(31.2% 0.139 286.2);
Tailwind
colors: {
  custom: {
    50: '#715a9b',
    500: '#301b72',
    950: '#000000',
  },
}
SCSS
$custom: #301b72;
$custom-light: #715a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#301b72",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 254.483,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31238,
    "c": 0.13929,
    "h": 286.2
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#301B72
secondary
#8EA742
accent
#E543BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B72

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

Preview Lab → · Contrast checker → · Palette generator →

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