#301B50#301B50

#301B50 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.093 H 298.5°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#301B50
RGBrgb(48, 27, 80)
HSLhsl(264, 50%, 21%)
HSVhsv(264, 66%, 31%)
CMYKcmyk(40%, 66.3%, 0%, 68.6%)
CIE-LABlab(15.44, 23.51, -28.89)
CIE-LCHlch(15.44, 37.25, 309.13°)
OKLaboklab(28.11% 0.0445 -0.0821)
OKLCHoklch(28.11% 0.093 298.5)
XYZxyz(3.0585, 1.9914, 7.8111)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B50 #3B501B
analogous
#1B2050 #301B50 #4A1B50
triadic
#301B50 #50301B #1B5030
tetradic
#301B50 #501B20 #3B501B #1B504A
square
#301B50 #501B20 #3B501B #1B504A
split-complementary
#301B50 #504A1B #20501B
monochromatic
#0E0817 #150C22 #301B50 #4B2A7E #673AAC

Accessibility & contrast

On white

15.02
#301B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B50
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B50#FFFFFF#000000##FFFFFF
##301B501.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#07264F
Tritanopia (blue-blind)
#292632
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301b50;
/* rgb */ color: rgb(48, 27, 80);
/* oklch */ color: oklch(28.1% 0.093 298.5);
Tailwind
colors: {
  custom: {
    50: '#6b5881',
    500: '#301b50',
    950: '#000000',
  },
}
SCSS
$custom: #301b50;
$custom-light: #6b5881;
$custom-dark: #000000;
JSON
{
  "hex": "#301b50",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 263.774,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28109,
    "c": 0.09336,
    "h": 298.5
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#301B50
secondary
#6B8641
accent
#D94FA2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301B50

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

Preview Lab → · Contrast checker → · Palette generator →

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