#3A4EC5#3A4EC5

#3A4EC5 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.186 H 270.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#3A4EC5
RGBrgb(58, 78, 197)
HSLhsl(231, 55%, 50%)
HSVhsv(231, 71%, 77%)
CMYKcmyk(70.6%, 60.4%, 0%, 22.7%)
CIE-LABlab(38.51, 32.47, -64.37)
CIE-LCHlch(38.51, 72.09, 296.76°)
OKLaboklab(48.26% 0.0015 -0.1857)
OKLCHoklch(48.26% 0.186 270.5)
XYZxyz(14.5439, 10.3781, 54.0492)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4EC5 #C5B13A
analogous
#3A93C5 #3A4EC5 #6C3AC5
triadic
#3A4EC5 #C53A4E #4EC53A
tetradic
#3A4EC5 #C53A93 #C5B13A #3AC56C
square
#3A4EC5 #C53A93 #C5B13A #3AC56C
split-complementary
#3A4EC5 #C56C3A #93C53A
monochromatic
#1E2966 #2C3B96 #3A4EC5 #6978D3 #99A3E1

Accessibility & contrast

On white

6.83
#3A4EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3A4EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A4EC5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4EC5#FFFFFF#000000##FFFFFF
##3A4EC51.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3a4ec5;
/* rgb */ color: rgb(58, 78, 197);
/* oklch */ color: oklch(48.3% 0.186 270.5);
Tailwind
colors: {
  custom: {
    50: '#827fd7',
    500: '#3a4ec5',
    950: '#000000',
  },
}
SCSS
$custom: #3a4ec5;
$custom-light: #827fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4ec5",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 197
  },
  "hsl": {
    "h": 231.367,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.48262,
    "c": 0.18575,
    "h": 270.5
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

primary
#3A4EC5
secondary
#CDC48E
accent
#C94ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A4EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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