#3021B2#3021B2

#3021B2 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.212 H 274.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#3021B2
RGBrgb(48, 33, 178)
HSLhsl(246, 69%, 41%)
HSVhsv(246, 81%, 70%)
CMYKcmyk(73%, 81.5%, 0%, 30.2%)
CIE-LABlab(26.53, 51.09, -72.88)
CIE-LCHlch(26.53, 89.01, 305.03°)
OKLaboklab(38.93% 0.018 -0.2107)
OKLCHoklch(38.93% 0.212 274.9)
XYZxyz(9.7960, 4.9295, 42.5461)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3021B2 #A3B221
analogous
#215BB2 #3021B2 #7921B2
triadic
#3021B2 #B23021 #21B230
tetradic
#3021B2 #B2215B #A3B221 #21B279
square
#3021B2 #B2215B #A3B221 #21B279
split-complementary
#3021B2 #B27921 #5BB221
monochromatic
#140E4B #22177E #3021B2 #4736DA #776AE3

Accessibility & contrast

On white

10.57
#3021B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3021B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3021B2
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3021B2#FFFFFF#000000##FFFFFF
##3021B21.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B6
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3021b2;
/* rgb */ color: rgb(48, 33, 178);
/* oklch */ color: oklch(38.9% 0.212 274.9);
Tailwind
colors: {
  custom: {
    50: '#7e61ca',
    500: '#3021b2',
    950: '#000000',
  },
}
SCSS
$custom: #3021b2;
$custom-light: #7e61ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3021b2",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 246.207,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38934,
    "c": 0.21151,
    "h": 274.9
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#3021B2
secondary
#BFC966
accent
#EC3CD9
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3021B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3021B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva