#30217F#30217F

#30217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.149 H 282.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#30217F
RGBrgb(48, 33, 127)
HSLhsl(250, 59%, 31%)
HSVhsv(250, 74%, 50%)
CMYKcmyk(62.2%, 74%, 0%, 50.2%)
CIE-LABlab(21.01, 34.94, -50.64)
CIE-LCHlch(21.01, 61.53, 304.60°)
OKLaboklab(33.42% 0.0309 -0.146)
OKLCHoklch(33.42% 0.149 282)
XYZxyz(5.5923, 3.2480, 20.4068)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30217F #707F21
analogous
#21417F #30217F #5F217F
triadic
#30217F #7F3021 #217F30
tetradic
#30217F #7F2141 #707F21 #217F5F
square
#30217F #7F2141 #707F21 #217F5F
split-complementary
#30217F #7F5F21 #417F21
monochromatic
#0B081E #1E144E #30217F #422EB0 #604AD0

Accessibility & contrast

On white

12.73
#30217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#30217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30217F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30217F#FFFFFF#000000##FFFFFF
##30217F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30217f;
/* rgb */ color: rgb(48, 33, 127);
/* oklch */ color: oklch(33.4% 0.149 282.0);
Tailwind
colors: {
  custom: {
    50: '#735ea5',
    500: '#30217f',
    950: '#000000',
  },
}
SCSS
$custom: #30217f;
$custom-light: #735ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#30217f",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 249.574,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33425,
    "c": 0.1492,
    "h": 282
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30217F

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

Preview Lab → · Contrast checker → · Palette generator →

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