#30218A#30218A

#30218A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.163 H 280.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#30218A
RGBrgb(48, 33, 138)
HSLhsl(249, 61%, 34%)
HSVhsv(249, 76%, 54%)
CMYKcmyk(65.2%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.13, 38.53, -55.73)
CIE-LCHlch(22.13, 67.75, 304.66°)
OKLaboklab(34.55% 0.0285 -0.1608)
OKLCHoklch(34.55% 0.163 280)
XYZxyz(6.3488, 3.5506, 24.3906)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30218A #7B8A21
analogous
#21468A #30218A #64218A
triadic
#30218A #8A3021 #218A30
tetradic
#30218A #8A2146 #7B8A21 #218A64
square
#30218A #8A2146 #7B8A21 #218A64
split-complementary
#30218A #8A6421 #468A21
monochromatic
#0E0927 #1F1559 #30218A #412DBB #6350D5

Accessibility & contrast

On white

12.28
#30218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#30218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30218A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30218A#FFFFFF#000000##FFFFFF
##30218A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30218a;
/* rgb */ color: rgb(48, 33, 138);
/* oklch */ color: oklch(34.6% 0.163 280.0);
Tailwind
colors: {
  custom: {
    50: '#755ead',
    500: '#30218a',
    950: '#000000',
  },
}
SCSS
$custom: #30218a;
$custom-light: #755ead;
$custom-dark: #000000;
JSON
{
  "hex": "#30218a",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 248.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34553,
    "c": 0.16333,
    "h": 280
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#30218A
secondary
#A9B94E
accent
#E543CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #30218A

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

Preview Lab → · Contrast checker → · Palette generator →

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