#30218E#30218E

#30218E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.168 H 279.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#30218E
RGBrgb(48, 33, 142)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 77%, 56%)
CMYKcmyk(66.2%, 76.8%, 0%, 44.3%)
CIE-LABlab(22.54, 39.83, -57.54)
CIE-LCHlch(22.54, 69.97, 304.69°)
OKLaboklab(34.97% 0.0275 -0.1661)
OKLCHoklch(34.97% 0.168 279.4)
XYZxyz(6.6437, 3.6686, 25.9439)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30218E #7F8E21
analogous
#21498E #30218E #67218E
triadic
#30218E #8E3021 #218E30
tetradic
#30218E #8E2149 #7F8E21 #218E67
square
#30218E #8E2149 #7F8E21 #218E67
split-complementary
#30218E #8E6721 #498E21
monochromatic
#0E0A2B #1F155C #30218E #412DC0 #6552D7

Accessibility & contrast

On white

12.11
#30218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#30218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30218E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30218E#FFFFFF#000000##FFFFFF
##30218E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30218e;
/* rgb */ color: rgb(48, 33, 142);
/* oklch */ color: oklch(35.0% 0.168 279.4);
Tailwind
colors: {
  custom: {
    50: '#765fb0',
    500: '#30218e',
    950: '#000000',
  },
}
SCSS
$custom: #30218e;
$custom-light: #765fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#30218e",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 248.257,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34973,
    "c": 0.16836,
    "h": 279.4
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#30218E
secondary
#ACBA50
accent
#E542CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30218E

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

Preview Lab → · Contrast checker → · Palette generator →

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