#30218C#30218C

#30218C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.166 H 279.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#30218C
RGBrgb(48, 33, 140)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(65.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.33, 39.18, -56.64)
CIE-LCHlch(22.33, 68.87, 304.68°)
OKLaboklab(34.76% 0.028 -0.1635)
OKLCHoklch(34.76% 0.166 279.7)
XYZxyz(6.4949, 3.6090, 25.1602)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30218C #7D8C21
analogous
#21488C #30218C #66218C
triadic
#30218C #8C3021 #218C30
tetradic
#30218C #8C2148 #7D8C21 #218C66
square
#30218C #8C2148 #7D8C21 #218C66
split-complementary
#30218C #8C6621 #488C21
monochromatic
#0E0A29 #1F155A #30218C #412DBE #6451D6

Accessibility & contrast

On white

12.20
#30218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#30218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30218C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30218C#FFFFFF#000000##FFFFFF
##30218C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #30218c;
/* rgb */ color: rgb(48, 33, 140);
/* oklch */ color: oklch(34.8% 0.166 279.7);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#30218c',
    950: '#000000',
  },
}
SCSS
$custom: #30218c;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#30218c",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 248.411,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34762,
    "c": 0.16584,
    "h": 279.7
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#30218C
secondary
#ABB94F
accent
#E543CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30218C

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

Preview Lab → · Contrast checker → · Palette generator →

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