#3A4EC7#3A4EC7

#3A4EC7 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.4% C 0.188 H 270.5°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#3A4EC7
RGBrgb(58, 78, 199)
HSLhsl(231, 56%, 50%)
HSVhsv(231, 71%, 78%)
CMYKcmyk(70.9%, 60.8%, 0%, 22%)
CIE-LABlab(38.67, 33.18, -65.27)
CIE-LCHlch(38.67, 73.22, 296.95°)
OKLaboklab(48.43% 0.0015 -0.1884)
OKLCHoklch(48.43% 0.188 270.5)
XYZxyz(14.7746, 10.4704, 55.2641)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4EC7 #C7B33A
analogous
#3A95C7 #3A4EC7 #6C3AC7
triadic
#3A4EC7 #C73A4E #4EC73A
tetradic
#3A4EC7 #C73A95 #C7B33A #3AC76C
square
#3A4EC7 #C73A95 #C7B33A #3AC76C
split-complementary
#3A4EC7 #C76C3A #95C73A
monochromatic
#1E2869 #2B3B98 #3A4EC7 #6A79D5 #99A4E2

Accessibility & contrast

On white

6.79
#3A4EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3A4EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A4EC7
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4EC7#FFFFFF#000000##FFFFFF
##3A4EC71.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3a4ec7;
/* rgb */ color: rgb(58, 78, 199);
/* oklch */ color: oklch(48.4% 0.188 270.5);
Tailwind
colors: {
  custom: {
    50: '#837fd9',
    500: '#3a4ec7',
    950: '#000000',
  },
}
SCSS
$custom: #3a4ec7;
$custom-light: #837fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4ec7",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 231.489,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48432,
    "c": 0.18839,
    "h": 270.5
  },
  "luminance": 0.10472
}

Semantic roles & 50–950 ramp

primary
#3A4EC7
secondary
#CEC58F
accent
#CA49DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A4EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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