#3021B3#3021B3

#3021B3 is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.0% C 0.213 H 274.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#3021B3
RGBrgb(48, 33, 179)
HSLhsl(246, 69%, 42%)
HSVhsv(246, 82%, 70%)
CMYKcmyk(73.2%, 81.6%, 0%, 29.8%)
CIE-LABlab(26.65, 51.40, -73.29)
CIE-LCHlch(26.65, 89.52, 305.04°)
OKLaboklab(39.05% 0.0178 -0.2119)
OKLCHoklch(39.05% 0.213 274.8)
XYZxyz(9.8968, 4.9698, 43.0768)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3021B3 #A4B321
analogous
#215BB3 #3021B3 #7921B3
triadic
#3021B3 #B33021 #21B330
tetradic
#3021B3 #B3215B #A4B321 #21B379
square
#3021B3 #B3215B #A4B321 #21B379
split-complementary
#3021B3 #B37921 #5BB321
monochromatic
#140E4C #22177F #3021B3 #4837DA #776BE4

Accessibility & contrast

On white

10.53
#3021B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3021B3
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3021B3#FFFFFF#000000##FFFFFF
##3021B31.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3021b3;
/* rgb */ color: rgb(48, 33, 179);
/* oklch */ color: oklch(39.0% 0.213 274.8);
Tailwind
colors: {
  custom: {
    50: '#7e61cb',
    500: '#3021b3',
    950: '#000000',
  },
}
SCSS
$custom: #3021b3;
$custom-light: #7e61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3021b3",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 246.164,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39047,
    "c": 0.21266,
    "h": 274.8
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#3021B3
secondary
#BFCA66
accent
#EC3CDA
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3021B3

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

Preview Lab → · Contrast checker → · Palette generator →

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