#302177#302177

#302177 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.139 H 283.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#302177
RGBrgb(48, 33, 119)
HSLhsl(250, 57%, 30%)
HSVhsv(250, 72%, 47%)
CMYKcmyk(59.7%, 72.3%, 0%, 53.3%)
CIE-LABlab(20.23, 32.30, -46.82)
CIE-LCHlch(20.23, 56.88, 304.60°)
OKLaboklab(32.63% 0.0325 -0.1348)
OKLCHoklch(32.63% 0.139 283.6)
XYZxyz(5.0915, 3.0477, 17.7692)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302177 #687721
analogous
#213D77 #302177 #5B2177
triadic
#302177 #773021 #217730
tetradic
#302177 #77213D #687721 #21775B
square
#302177 #77213D #687721 #21775B
split-complementary
#302177 #775B21 #3D7721
monochromatic
#0A0718 #1D1447 #302177 #432EA7 #5E47CC

Accessibility & contrast

On white

13.05
#302177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#302177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302177
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302177#FFFFFF#000000##FFFFFF
##3021771.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#0A3849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #302177;
/* rgb */ color: rgb(48, 33, 119);
/* oklch */ color: oklch(32.6% 0.139 283.6);
Tailwind
colors: {
  custom: {
    50: '#715e9f',
    500: '#302177',
    950: '#000000',
  },
}
SCSS
$custom: #302177;
$custom-light: #715e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#302177",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 250.465,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32632,
    "c": 0.13864,
    "h": 283.6
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#302177
secondary
#99AA4A
accent
#E048C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #302177

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

Preview Lab → · Contrast checker → · Palette generator →

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