#30217E#30217E

#30217E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 282.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#30217E
RGBrgb(48, 33, 126)
HSLhsl(250, 58%, 31%)
HSVhsv(250, 74%, 49%)
CMYKcmyk(61.9%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.91, 34.61, -50.17)
CIE-LCHlch(20.91, 60.95, 304.60°)
OKLaboklab(33.32% 0.0312 -0.1446)
OKLCHoklch(33.32% 0.148 282.2)
XYZxyz(5.5275, 3.2221, 20.0653)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30217E #6F7E21
analogous
#21407E #30217E #5E217E
triadic
#30217E #7E3021 #217E30
tetradic
#30217E #7E2140 #6F7E21 #217E5E
square
#30217E #7E2140 #6F7E21 #217E5E
split-complementary
#30217E #7E5E21 #407E21
monochromatic
#0B081D #1E144E #30217E #422EAE #5F4AD0

Accessibility & contrast

On white

12.77
#30217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30217E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30217E#FFFFFF#000000##FFFFFF
##30217E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30217e;
/* rgb */ color: rgb(48, 33, 126);
/* oklch */ color: oklch(33.3% 0.148 282.2);
Tailwind
colors: {
  custom: {
    50: '#725ea4',
    500: '#30217e',
    950: '#000000',
  },
}
SCSS
$custom: #30217e;
$custom-light: #725ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#30217e",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 249.677,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33324,
    "c": 0.1479,
    "h": 282.2
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#30217E
secondary
#A0B14A
accent
#E246C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30217E

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

Preview Lab → · Contrast checker → · Palette generator →

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