#301161#301161

#301161 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.129 H 294.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#301161
RGBrgb(48, 17, 97)
HSLhsl(263, 70%, 22%)
HSVhsv(263, 82%, 38%)
CMYKcmyk(50.5%, 82.5%, 0%, 62%)
CIE-LABlab(14.91, 34.31, -41.20)
CIE-LCHlch(14.91, 53.62, 309.79°)
OKLaboklab(28.21% 0.0526 -0.1182)
OKLCHoklch(28.21% 0.129 294)
XYZxyz(3.5764, 1.8922, 11.4837)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301161 #426111
analogous
#111A61 #301161 #581161
triadic
#301161 #613011 #116130
tetradic
#301161 #61111A #426111 #116158
square
#301161 #61111A #426111 #116158
split-complementary
#301161 #615811 #1A6111
monochromatic
#0D051A #16082D #301161 #4A1A95 #6423C9

Accessibility & contrast

On white

15.24
#301161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301161
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301161#FFFFFF#000000##FFFFFF
##3011611.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#212739
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301161;
/* rgb */ color: rgb(48, 17, 97);
/* oklch */ color: oklch(28.2% 0.129 294.0);
Tailwind
colors: {
  custom: {
    50: '#6e538f',
    500: '#301161',
    950: '#000000',
  },
}
SCSS
$custom: #301161;
$custom-light: #6e538f;
$custom-dark: #000000;
JSON
{
  "hex": "#301161",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 263.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28205,
    "c": 0.12935,
    "h": 294
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#301161
secondary
#729934
accent
#ED3BA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301161

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

Preview Lab → · Contrast checker → · Palette generator →

#301161 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva