#30218F#30218F

#30218F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.170 H 279.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#30218F
RGBrgb(48, 33, 143)
HSLhsl(248, 63%, 35%)
HSVhsv(248, 77%, 56%)
CMYKcmyk(66.4%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.65, 40.15, -57.98)
CIE-LCHlch(22.65, 70.53, 304.70°)
OKLaboklab(35.08% 0.0272 -0.1674)
OKLCHoklch(35.08% 0.17 279.2)
XYZxyz(6.7191, 3.6987, 26.3411)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30218F #808F21
analogous
#21498F #30218F #67218F
triadic
#30218F #8F3021 #218F30
tetradic
#30218F #8F2149 #808F21 #218F67
square
#30218F #8F2149 #808F21 #218F67
split-complementary
#30218F #8F6721 #498F21
monochromatic
#0F0A2C #1F165D #30218F #412CC1 #6553D7

Accessibility & contrast

On white

12.07
#30218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#30218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30218F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30218F#FFFFFF#000000##FFFFFF
##30218F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30218f;
/* rgb */ color: rgb(48, 33, 143);
/* oklch */ color: oklch(35.1% 0.170 279.2);
Tailwind
colors: {
  custom: {
    50: '#765fb1',
    500: '#30218f',
    950: '#000000',
  },
}
SCSS
$custom: #30218f;
$custom-light: #765fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#30218f",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 248.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35079,
    "c": 0.16961,
    "h": 279.2
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#30218F
secondary
#ACBB51
accent
#E642CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30218F

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

Preview Lab → · Contrast checker → · Palette generator →

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