#3A28AA#3A28AA

#3A28AA is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.6% C 0.194 H 279.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#3A28AA
RGBrgb(58, 40, 170)
HSLhsl(248, 62%, 41%)
HSVhsv(248, 76%, 67%)
CMYKcmyk(65.9%, 76.5%, 0%, 33.3%)
CIE-LABlab(27.62, 46.08, -66.26)
CIE-LCHlch(27.62, 80.71, 304.82°)
OKLaboklab(39.63% 0.0306 -0.1913)
OKLCHoklch(39.63% 0.194 279.1)
XYZxyz(9.7571, 5.3186, 38.5348)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28AA #98AA28
analogous
#2857AA #3A28AA #7B28AA
triadic
#3A28AA #AA3A28 #28AA3A
tetradic
#3A28AA #AA2857 #98AA28 #28AA7B
square
#3A28AA #AA2857 #98AA28 #28AA7B
split-complementary
#3A28AA #AA7B28 #57AA28
monochromatic
#181147 #291C78 #3A28AA #523ED2 #7E6FDD

Accessibility & contrast

On white

10.18
#3A28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A28AA
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28AA#FFFFFF#000000##FFFFFF
##3A28AA1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a28aa;
/* rgb */ color: rgb(58, 40, 170);
/* oklch */ color: oklch(39.6% 0.194 279.1);
Tailwind
colors: {
  custom: {
    50: '#8065c5',
    500: '#3a28aa',
    950: '#000000',
  },
}
SCSS
$custom: #3a28aa;
$custom-light: #8065c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28aa",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 248.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39632,
    "c": 0.19375,
    "h": 279.1
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#3A28AA
secondary
#B8C46A
accent
#E543CF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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