#302271#302271

#302271 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.2% C 0.129 H 284.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#302271
RGBrgb(48, 34, 113)
HSLhsl(251, 54%, 29%)
HSVhsv(251, 70%, 44%)
CMYKcmyk(57.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(19.90, 29.69, -43.51)
CIE-LCHlch(19.90, 52.68, 304.31°)
OKLaboklab(32.22% 0.0326 -0.1251)
OKLCHoklch(32.22% 0.129 284.6)
XYZxyz(4.7707, 2.9644, 15.9404)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302271 #637122
analogous
#223C71 #302271 #582271
triadic
#302271 #713022 #227130
tetradic
#302271 #71223C #637122 #227158
square
#302271 #71223C #637122 #227158
split-complementary
#302271 #715822 #3C7122
monochromatic
#0A0718 #1C1442 #302271 #4430A0 #5D46C7

Accessibility & contrast

On white

13.18
#302271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#302271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302271
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302271#FFFFFF#000000##FFFFFF
##3022711.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#133646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #302271;
/* rgb */ color: rgb(48, 34, 113);
/* oklch */ color: oklch(32.2% 0.129 284.6);
Tailwind
colors: {
  custom: {
    50: '#705e9b',
    500: '#302271',
    950: '#000000',
  },
}
SCSS
$custom: #302271;
$custom-light: #705e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#302271",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 250.633,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32221,
    "c": 0.12924,
    "h": 284.6
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#302271
secondary
#94A44A
accent
#DD4BC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302271

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

Preview Lab → · Contrast checker → · Palette generator →

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