#3A28A9#3A28A9

#3A28A9 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.193 H 279.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#3A28A9
RGBrgb(58, 40, 169)
HSLhsl(248, 62%, 41%)
HSVhsv(248, 76%, 66%)
CMYKcmyk(65.7%, 76.3%, 0%, 33.7%)
CIE-LABlab(27.52, 45.77, -65.82)
CIE-LCHlch(27.52, 80.17, 304.81°)
OKLaboklab(39.53% 0.0309 -0.19)
OKLCHoklch(39.53% 0.193 279.2)
XYZxyz(9.6629, 5.2809, 38.0385)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28A9 #97A928
analogous
#2856A9 #3A28A9 #7A28A9
triadic
#3A28A9 #A93A28 #28A93A
tetradic
#3A28A9 #A92856 #97A928 #28A97A
square
#3A28A9 #A92856 #97A928 #28A97A
split-complementary
#3A28A9 #A97A28 #56A928
monochromatic
#181146 #291C78 #3A28A9 #523DD1 #7E6FDD

Accessibility & contrast

On white

10.21
#3A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28A9
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28A9#FFFFFF#000000##FFFFFF
##3A28A91.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003CA7
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a28a9;
/* rgb */ color: rgb(58, 40, 169);
/* oklch */ color: oklch(39.5% 0.193 279.2);
Tailwind
colors: {
  custom: {
    50: '#7f65c4',
    500: '#3a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #3a28a9;
$custom-light: #7f65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28a9",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 248.372,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39529,
    "c": 0.19254,
    "h": 279.2
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#3A28A9
secondary
#B7C469
accent
#E543CE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

#3A28A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva