#3A27BA#3A27BA

#3A27BA is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.2% C 0.214 H 277.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#3A27BA
RGBrgb(58, 39, 186)
HSLhsl(248, 65%, 44%)
HSVhsv(248, 79%, 73%)
CMYKcmyk(68.8%, 79%, 0%, 27.1%)
CIE-LABlab(29.15, 51.49, -73.30)
CIE-LCHlch(29.15, 89.57, 305.09°)
OKLaboklab(41.2% 0.027 -0.2118)
OKLCHoklch(41.2% 0.214 277.3)
XYZxyz(11.3305, 5.8947, 46.9855)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A27BA #A7BA27
analogous
#275EBA #3A27BA #8427BA
triadic
#3A27BA #BA3A27 #27BA3A
tetradic
#3A27BA #BA275E #A7BA27 #27BA84
square
#3A27BA #BA275E #A7BA27 #27BA84
split-complementary
#3A27BA #BA8427 #5EBA27
monochromatic
#1A1255 #2A1C87 #3A27BA #5946D8 #8679E3

Accessibility & contrast

On white

9.64
#3A27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3A27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A27BA
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A27BA#FFFFFF#000000##FFFFFF
##3A27BA1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005470
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a27ba;
/* rgb */ color: rgb(58, 39, 186);
/* oklch */ color: oklch(41.2% 0.214 277.3);
Tailwind
colors: {
  custom: {
    50: '#8365d0',
    500: '#3a27ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a27ba;
$custom-light: #8365d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a27ba",
  "rgb": {
    "r": 58,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 247.755,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.412,
    "c": 0.21352,
    "h": 277.3
  },
  "luminance": 0.05896
}

Semantic roles & 50–950 ramp

primary
#3A27BA
secondary
#BFCB72
accent
#E840D2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #3A27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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