#30218D#30218D

#30218D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 279.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#30218D
RGBrgb(48, 33, 141)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 77%, 55%)
CMYKcmyk(66%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.44, 39.50, -57.09)
CIE-LCHlch(22.44, 69.42, 304.68°)
OKLaboklab(34.87% 0.0277 -0.1648)
OKLCHoklch(34.87% 0.167 279.5)
XYZxyz(6.5690, 3.6387, 25.5503)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30218D #7E8D21
analogous
#21488D #30218D #66218D
triadic
#30218D #8D3021 #218D30
tetradic
#30218D #8D2148 #7E8D21 #218D66
square
#30218D #8D2148 #7E8D21 #218D66
split-complementary
#30218D #8D6621 #488D21
monochromatic
#0E0A2A #1F155B #30218D #412DBF #6452D6

Accessibility & contrast

On white

12.15
#30218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30218D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30218D#FFFFFF#000000##FFFFFF
##30218D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30218d;
/* rgb */ color: rgb(48, 33, 141);
/* oklch */ color: oklch(34.9% 0.167 279.5);
Tailwind
colors: {
  custom: {
    50: '#765faf',
    500: '#30218d',
    950: '#000000',
  },
}
SCSS
$custom: #30218d;
$custom-light: #765faf;
$custom-dark: #000000;
JSON
{
  "hex": "#30218d",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 248.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34868,
    "c": 0.16711,
    "h": 279.5
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#30218D
secondary
#ABBA50
accent
#E543CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30218D

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

Preview Lab → · Contrast checker → · Palette generator →

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