#301B90#301B90

#301B90 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.176 H 279.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#301B90
RGBrgb(48, 27, 144)
HSLhsl(251, 68%, 34%)
HSVhsv(251, 81%, 56%)
CMYKcmyk(66.7%, 81.3%, 0%, 43.5%)
CIE-LABlab(21.67, 43.58, -60.22)
CIE-LCHlch(21.67, 74.33, 305.89°)
OKLaboklab(34.43% 0.0305 -0.1738)
OKLCHoklch(34.43% 0.177 279.9)
XYZxyz(6.6433, 3.4253, 26.6912)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B90 #7B901B
analogous
#1B4090 #301B90 #6A1B90
triadic
#301B90 #90301B #1B9030
tetradic
#301B90 #901B40 #7B901B #1B906A
square
#301B90 #901B40 #7B901B #1B906A
split-complementary
#301B90 #906A1B #40901B
monochromatic
#0E0829 #1F115C #301B90 #4125C4 #6349DD

Accessibility & contrast

On white

12.46
#301B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B90
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B90#FFFFFF#000000##FFFFFF
##301B901.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301b90;
/* rgb */ color: rgb(48, 27, 144);
/* oklch */ color: oklch(34.4% 0.176 279.9);
Tailwind
colors: {
  custom: {
    50: '#775bb2',
    500: '#301b90',
    950: '#000000',
  },
}
SCSS
$custom: #301b90;
$custom-light: #775bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#301b90",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 250.769,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34428,
    "c": 0.1765,
    "h": 279.9
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#301B90
secondary
#A9BF48
accent
#EB3DCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301B90

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

Preview Lab → · Contrast checker → · Palette generator →

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