#3A47B2#3A47B2

#3A47B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.169 H 272.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#3A47B2
RGBrgb(58, 71, 178)
HSLhsl(234, 51%, 46%)
HSVhsv(234, 67%, 70%)
CMYKcmyk(67.4%, 60.1%, 0%, 30.2%)
CIE-LABlab(35.24, 30.19, -58.55)
CIE-LCHlch(35.24, 65.87, 297.27°)
OKLaboklab(45.36% 0.0072 -0.1687)
OKLCHoklch(45.36% 0.169 272.5)
XYZxyz(12.0313, 8.6193, 43.1405)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A47B2 #B2A53A
analogous
#3A83B2 #3A47B2 #693AB2
triadic
#3A47B2 #B23A47 #47B23A
tetradic
#3A47B2 #B23A83 #B2A53A #3AB269
square
#3A47B2 #B23A83 #B2A53A #3AB269
split-complementary
#3A47B2 #B2693A #83B23A
monochromatic
#1C2256 #2B3584 #3A47B2 #5F6ACB #8D95DA

Accessibility & contrast

On white

7.71
#3A47B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3A47B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A47B2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A47B2#FFFFFF#000000##FFFFFF
##3A47B21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a47b2;
/* rgb */ color: rgb(58, 71, 178);
/* oklch */ color: oklch(45.4% 0.169 272.5);
Tailwind
colors: {
  custom: {
    50: '#7f7aca',
    500: '#3a47b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a47b2;
$custom-light: #7f7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a47b2",
  "rgb": {
    "r": 58,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 233.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45364,
    "c": 0.16887,
    "h": 272.5
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#3A47B2
secondary
#C4BD83
accent
#CB4DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3A47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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