#30217C#30217C

#30217C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.145 H 282.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#30217C
RGBrgb(48, 33, 124)
HSLhsl(250, 58%, 31%)
HSVhsv(250, 73%, 49%)
CMYKcmyk(61.3%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.72, 33.95, -49.22)
CIE-LCHlch(20.72, 59.80, 304.60°)
OKLaboklab(33.13% 0.0316 -0.1418)
OKLCHoklch(33.13% 0.145 282.6)
XYZxyz(5.3997, 3.1710, 19.3924)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30217C #6D7C21
analogous
#213F7C #30217C #5D217C
triadic
#30217C #7C3021 #217C30
tetradic
#30217C #7C213F #6D7C21 #217C5D
square
#30217C #7C213F #6D7C21 #217C5D
split-complementary
#30217C #7C5D21 #3F7C21
monochromatic
#0B071B #1D144C #30217C #432EAC #5F49CF

Accessibility & contrast

On white

12.85
#30217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30217C
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30217C#FFFFFF#000000##FFFFFF
##30217C1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30217c;
/* rgb */ color: rgb(48, 33, 124);
/* oklch */ color: oklch(33.1% 0.145 282.6);
Tailwind
colors: {
  custom: {
    50: '#725ea3',
    500: '#30217c',
    950: '#000000',
  },
}
SCSS
$custom: #30217c;
$custom-light: #725ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#30217c",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 249.89,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33125,
    "c": 0.14527,
    "h": 282.6
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#30217C
secondary
#9EAF4A
accent
#E147C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30217C

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

Preview Lab → · Contrast checker → · Palette generator →

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