#30215E#30215E

#30215E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.104 H 290.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#30215E
RGBrgb(48, 33, 94)
HSLhsl(255, 48%, 25%)
HSVhsv(255, 65%, 37%)
CMYKcmyk(48.9%, 64.9%, 0%, 63.1%)
CIE-LABlab(18.03, 24.04, -34.13)
CIE-LCHlch(18.03, 41.74, 305.16°)
OKLaboklab(30.35% 0.0357 -0.0975)
OKLCHoklch(30.35% 0.104 290.1)
XYZxyz(3.7826, 2.5241, 10.8754)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30215E #4F5E21
analogous
#21315E #30215E #4E215E
triadic
#30215E #5E3021 #215E30
tetradic
#30215E #5E2131 #4F5E21 #215E4E
square
#30215E #5E2131 #4F5E21 #215E4E
split-complementary
#30215E #5E4E21 #315E21
monochromatic
#0C0817 #191131 #30215E #47318B #5E41B9

Accessibility & contrast

On white

13.96
#30215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#30215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30215E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30215E#FFFFFF#000000##FFFFFF
##30215E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#222F3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30215e;
/* rgb */ color: rgb(48, 33, 94);
/* oklch */ color: oklch(30.3% 0.104 290.1);
Tailwind
colors: {
  custom: {
    50: '#6d5d8c',
    500: '#30215e',
    950: '#000000',
  },
}
SCSS
$custom: #30215e;
$custom-light: #6d5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#30215e",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 254.754,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30349,
    "c": 0.10383,
    "h": 290.1
  },
  "luminance": 0.02524
}

Semantic roles & 50–950 ramp

primary
#30215E
secondary
#809249
accent
#D850B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #30215E

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

Preview Lab → · Contrast checker → · Palette generator →

#30215E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva