#3A4EC4#3A4EC4

#3A4EC4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.2% C 0.184 H 270.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#3A4EC4
RGBrgb(58, 78, 196)
HSLhsl(231, 54%, 50%)
HSVhsv(231, 70%, 77%)
CMYKcmyk(70.4%, 60.2%, 0%, 23.1%)
CIE-LABlab(38.43, 32.11, -63.92)
CIE-LCHlch(38.43, 71.53, 296.67°)
OKLaboklab(48.18% 0.0016 -0.1844)
OKLCHoklch(48.18% 0.184 270.5)
XYZxyz(14.4297, 10.3324, 53.4477)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4EC4 #C4B03A
analogous
#3A93C4 #3A4EC4 #6B3AC4
triadic
#3A4EC4 #C43A4E #4EC43A
tetradic
#3A4EC4 #C43A93 #C4B03A #3AC46B
square
#3A4EC4 #C43A93 #C4B03A #3AC46B
split-complementary
#3A4EC4 #C46B3A #93C43A
monochromatic
#1E2866 #2C3B95 #3A4EC4 #6978D3 #98A2E0

Accessibility & contrast

On white

6.85
#3A4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3A4EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A4EC4
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4EC4#FFFFFF#000000##FFFFFF
##3A4EC41.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a4ec4;
/* rgb */ color: rgb(58, 78, 196);
/* oklch */ color: oklch(48.2% 0.184 270.5);
Tailwind
colors: {
  custom: {
    50: '#827fd7',
    500: '#3a4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #3a4ec4;
$custom-light: #827fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4ec4",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 231.304,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48178,
    "c": 0.18443,
    "h": 270.5
  },
  "luminance": 0.10334
}

Semantic roles & 50–950 ramp

primary
#3A4EC4
secondary
#CCC38E
accent
#C84ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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