#301B49#301B49

#301B49 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.083 H 302.3°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#301B49
RGBrgb(48, 27, 73)
HSLhsl(267, 46%, 20%)
HSVhsv(267, 63%, 29%)
CMYKcmyk(34.2%, 63%, 0%, 71.4%)
CIE-LABlab(14.92, 21.40, -24.94)
CIE-LCHlch(14.92, 32.86, 310.64°)
OKLaboklab(27.56% 0.0446 -0.0705)
OKLCHoklch(27.56% 0.083 302.3)
XYZxyz(2.8132, 1.8933, 6.5193)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B49 #34491B
analogous
#1B1D49 #301B49 #471B49
triadic
#301B49 #49301B #1B4930
tetradic
#301B49 #491B1D #34491B #1B4947
square
#301B49 #491B1D #34491B #1B4947
split-complementary
#301B49 #49471B #1D491B
monochromatic
#0F0816 #130A1C #301B49 #4D2C76 #6B3CA2

Accessibility & contrast

On white

15.23
#301B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B49
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B49#FFFFFF#000000##FFFFFF
##301B491.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08254B
Deuteranopia (green-blind)
#102548
Tritanopia (blue-blind)
#2B242F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301b49;
/* rgb */ color: rgb(48, 27, 73);
/* oklch */ color: oklch(27.6% 0.083 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a587c',
    500: '#301b49',
    950: '#000000',
  },
}
SCSS
$custom: #301b49;
$custom-light: #6a587c;
$custom-dark: #000000;
JSON
{
  "hex": "#301b49",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 267.391,
    "s": 46,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27557,
    "c": 0.08338,
    "h": 302.3
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#301B49
secondary
#637F41
accent
#D6529A
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #301B49

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

Preview Lab → · Contrast checker → · Palette generator →

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