#302174#302174

#302174 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.135 H 284.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#302174
RGBrgb(48, 33, 116)
HSLhsl(251, 56%, 29%)
HSVhsv(251, 72%, 45%)
CMYKcmyk(58.6%, 71.6%, 0%, 54.5%)
CIE-LABlab(19.95, 31.31, -45.36)
CIE-LCHlch(19.95, 55.12, 304.61°)
OKLaboklab(32.34% 0.0331 -0.1305)
OKLCHoklch(32.34% 0.135 284.2)
XYZxyz(4.9142, 2.9768, 16.8352)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302174 #657421
analogous
#213C74 #302174 #5A2174
triadic
#302174 #743021 #217430
tetradic
#302174 #74213C #657421 #21745A
square
#302174 #74213C #657421 #21745A
split-complementary
#302174 #745A21 #3C7421
monochromatic
#0A0718 #1C1344 #302174 #442FA4 #5D45CA

Accessibility & contrast

On white

13.16
#302174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#302174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302174
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302174#FFFFFF#000000##FFFFFF
##3021741.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#0F3747
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #302174;
/* rgb */ color: rgb(48, 33, 116);
/* oklch */ color: oklch(32.3% 0.135 284.2);
Tailwind
colors: {
  custom: {
    50: '#705d9d',
    500: '#302174',
    950: '#000000',
  },
}
SCSS
$custom: #302174;
$custom-light: #705d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#302174",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 250.843,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32342,
    "c": 0.13462,
    "h": 284.2
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#302174
secondary
#96A749
accent
#DF49C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302174

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

Preview Lab → · Contrast checker → · Palette generator →

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