#30217D#30217D

#30217D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.147 H 282.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#30217D
RGBrgb(48, 33, 125)
HSLhsl(250, 58%, 31%)
HSVhsv(250, 74%, 49%)
CMYKcmyk(61.6%, 73.6%, 0%, 51%)
CIE-LABlab(20.81, 34.28, -49.70)
CIE-LCHlch(20.81, 60.38, 304.60°)
OKLaboklab(33.22% 0.0314 -0.1432)
OKLCHoklch(33.22% 0.147 282.4)
XYZxyz(5.4633, 3.1964, 19.7271)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30217D #6E7D21
analogous
#21407D #30217D #5E217D
triadic
#30217D #7D3021 #217D30
tetradic
#30217D #7D2140 #6E7D21 #217D5E
square
#30217D #7D2140 #6E7D21 #217D5E
split-complementary
#30217D #7D5E21 #407D21
monochromatic
#0B071C #1D144D #30217D #432EAD #5F49CF

Accessibility & contrast

On white

12.81
#30217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30217D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30217D#FFFFFF#000000##FFFFFF
##30217D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30217d;
/* rgb */ color: rgb(48, 33, 125);
/* oklch */ color: oklch(33.2% 0.147 282.4);
Tailwind
colors: {
  custom: {
    50: '#725ea4',
    500: '#30217d',
    950: '#000000',
  },
}
SCSS
$custom: #30217d;
$custom-light: #725ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#30217d",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 249.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33224,
    "c": 0.14658,
    "h": 282.4
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#30217D
secondary
#9FB04A
accent
#E146C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30217D

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

Preview Lab → · Contrast checker → · Palette generator →

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