#301B54#301B54

#301B54 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.099 H 296.5°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#301B54
RGBrgb(48, 27, 84)
HSLhsl(262, 51%, 22%)
HSVhsv(262, 68%, 33%)
CMYKcmyk(42.9%, 67.9%, 0%, 67.1%)
CIE-LABlab(15.76, 24.74, -31.10)
CIE-LCHlch(15.76, 39.74, 308.50°)
OKLaboklab(28.44% 0.0442 -0.0886)
OKLCHoklch(28.44% 0.099 296.5)
XYZxyz(3.2107, 2.0523, 8.6128)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B54 #3F541B
analogous
#1B2354 #301B54 #4D1B54
triadic
#301B54 #54301B #1B5430
tetradic
#301B54 #541B23 #3F541B #1B544D
square
#301B54 #541B23 #3F541B #1B544D
split-complementary
#301B54 #544D1B #23541B
monochromatic
#0D0717 #160C26 #301B54 #4A2A82 #6539B1

Accessibility & contrast

On white

14.89
#301B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B54
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B54#FFFFFF#000000##FFFFFF
##301B541.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002753
Tritanopia (blue-blind)
#272834
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301b54;
/* rgb */ color: rgb(48, 27, 84);
/* oklch */ color: oklch(28.4% 0.099 296.5);
Tailwind
colors: {
  custom: {
    50: '#6c5885',
    500: '#301b54',
    950: '#000000',
  },
}
SCSS
$custom: #301b54;
$custom-light: #6c5885;
$custom-dark: #000000;
JSON
{
  "hex": "#301b54",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 262.105,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28441,
    "c": 0.09899,
    "h": 296.5
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#301B54
secondary
#6F8A41
accent
#DB4DA7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301B54

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

Preview Lab → · Contrast checker → · Palette generator →

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