#3021AC#3021AC

#3021AC is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.205 H 275.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3021AC
RGBrgb(48, 33, 172)
HSLhsl(246, 68%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(72.1%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.84, 49.27, -70.43)
CIE-LCHlch(25.84, 85.95, 304.97°)
OKLaboklab(38.26% 0.0196 -0.2036)
OKLCHoklch(38.26% 0.205 275.5)
XYZxyz(9.2067, 4.6938, 39.4425)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3021AC #9DAC21
analogous
#2157AC #3021AC #7621AC
triadic
#3021AC #AC3021 #21AC30
tetradic
#3021AC #AC2157 #9DAC21 #21AC76
square
#3021AC #AC2157 #9DAC21 #21AC76
split-complementary
#3021AC #AC7621 #57AC21
monochromatic
#130D45 #221779 #3021AC #4432D8 #7366E2

Accessibility & contrast

On white

10.83
#3021AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3021AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3021AC
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3021AC#FFFFFF#000000##FFFFFF
##3021AC1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0037AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3021ac;
/* rgb */ color: rgb(48, 33, 172);
/* oklch */ color: oklch(38.3% 0.205 275.5);
Tailwind
colors: {
  custom: {
    50: '#7c61c6',
    500: '#3021ac',
    950: '#000000',
  },
}
SCSS
$custom: #3021ac;
$custom-light: #7c61c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3021ac",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 246.475,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38255,
    "c": 0.20456,
    "h": 275.5
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#3021AC
secondary
#BCC762
accent
#EB3DD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3021AC

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

Preview Lab → · Contrast checker → · Palette generator →

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