#30218B#30218B

#30218B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.165 H 279.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#30218B
RGBrgb(48, 33, 139)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(65.5%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.23, 38.86, -56.18)
CIE-LCHlch(22.23, 68.31, 304.67°)
OKLaboklab(34.66% 0.0282 -0.1621)
OKLCHoklch(34.66% 0.165 279.9)
XYZxyz(6.4215, 3.5797, 24.7736)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30218B #7C8B21
analogous
#21478B #30218B #65218B
triadic
#30218B #8B3021 #218B30
tetradic
#30218B #8B2147 #7C8B21 #218B65
square
#30218B #8B2147 #7C8B21 #218B65
split-complementary
#30218B #8B6521 #478B21
monochromatic
#0E0A28 #1F155A #30218B #412DBC #6451D6

Accessibility & contrast

On white

12.24
#30218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30218B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30218B#FFFFFF#000000##FFFFFF
##30218B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #30218b;
/* rgb */ color: rgb(48, 33, 139);
/* oklch */ color: oklch(34.7% 0.165 279.9);
Tailwind
colors: {
  custom: {
    50: '#755fae',
    500: '#30218b',
    950: '#000000',
  },
}
SCSS
$custom: #30218b;
$custom-light: #755fae;
$custom-dark: #000000;
JSON
{
  "hex": "#30218b",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 248.491,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34657,
    "c": 0.16459,
    "h": 279.9
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#30218B
secondary
#AAB94F
accent
#E543CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #30218B

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

Preview Lab → · Contrast checker → · Palette generator →

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