#3A27AB#3A27AB

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

Color values

HEX#3A27AB
RGBrgb(58, 39, 171)
HSLhsl(249, 63%, 41%)
HSVhsv(249, 77%, 67%)
CMYKcmyk(66.1%, 77.2%, 0%, 32.9%)
CIE-LABlab(27.55, 46.91, -66.99)
CIE-LCHlch(27.55, 81.78, 305.00°)
OKLaboklab(39.61% 0.031 -0.1934)
OKLCHoklch(39.61% 0.196 279.1)
XYZxyz(9.8188, 5.2900, 39.0238)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A27AB #98AB27
analogous
#2756AB #3A27AB #7C27AB
triadic
#3A27AB #AB3A27 #27AB3A
tetradic
#3A27AB #AB2756 #98AB27 #27AB7C
square
#3A27AB #AB2756 #98AB27 #27AB7C
split-complementary
#3A27AB #AB7C27 #56AB27
monochromatic
#181047 #291C79 #3A27AB #523DD3 #7E6EDE

Accessibility & contrast

On white

10.20
#3A27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A27AB
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A27AB#FFFFFF#000000##FFFFFF
##3A27AB1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a27ab;
/* rgb */ color: rgb(58, 39, 171);
/* oklch */ color: oklch(39.6% 0.196 279.1);
Tailwind
colors: {
  custom: {
    50: '#8064c5',
    500: '#3a27ab',
    950: '#000000',
  },
}
SCSS
$custom: #3a27ab;
$custom-light: #8064c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a27ab",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 248.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39608,
    "c": 0.19589,
    "h": 279.1
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#3A27AB
secondary
#B8C569
accent
#E642CE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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