#302276#302276

#302276 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.136 H 283.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#302276
RGBrgb(48, 34, 118)
HSLhsl(250, 55%, 30%)
HSVhsv(250, 71%, 46%)
CMYKcmyk(59.3%, 71.2%, 0%, 53.7%)
CIE-LABlab(20.36, 31.36, -45.97)
CIE-LCHlch(20.36, 55.65, 304.30°)
OKLaboklab(32.7% 0.0318 -0.1323)
OKLCHoklch(32.7% 0.136 283.5)
XYZxyz(5.0600, 3.0801, 17.4639)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302276 #687622
analogous
#223E76 #302276 #5A2276
triadic
#302276 #763022 #227630
tetradic
#302276 #76223E #687622 #22765A
square
#302276 #76223E #687622 #22765A
split-complementary
#302276 #765A22 #3E7622
monochromatic
#0A0718 #1D1446 #302276 #4330A6 #5E48CA

Accessibility & contrast

On white

13.00
#302276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#302276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302276
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302276#FFFFFF#000000##FFFFFF
##3022761.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#0B3849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #302276;
/* rgb */ color: rgb(48, 34, 118);
/* oklch */ color: oklch(32.7% 0.136 283.5);
Tailwind
colors: {
  custom: {
    50: '#715e9e',
    500: '#302276',
    950: '#000000',
  },
}
SCSS
$custom: #302276;
$custom-light: #715e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#302276",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 250,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32695,
    "c": 0.13605,
    "h": 283.5
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#302276
secondary
#99A94B
accent
#DF49C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302276

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

Preview Lab → · Contrast checker → · Palette generator →

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