#3A4EC1#3A4EC1

#3A4EC1 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.180 H 270.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#3A4EC1
RGBrgb(58, 78, 193)
HSLhsl(231, 54%, 49%)
HSVhsv(231, 70%, 76%)
CMYKcmyk(69.9%, 59.6%, 0%, 24.3%)
CIE-LABlab(38.19, 31.04, -62.56)
CIE-LCHlch(38.19, 69.84, 296.39°)
OKLaboklab(47.93% 0.0016 -0.1804)
OKLCHoklch(47.93% 0.18 270.5)
XYZxyz(14.0917, 10.1972, 51.6673)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4EC1 #C1AD3A
analogous
#3A92C1 #3A4EC1 #6A3AC1
triadic
#3A4EC1 #C13A4E #4EC13A
tetradic
#3A4EC1 #C13A92 #C1AD3A #3AC16A
square
#3A4EC1 #C13A92 #C1AD3A #3AC16A
split-complementary
#3A4EC1 #C16A3A #92C13A
monochromatic
#1E2863 #2C3B92 #3A4EC1 #6777D1 #96A1DF

Accessibility & contrast

On white

6.91
#3A4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3A4EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A4EC1
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4EC1#FFFFFF#000000##FFFFFF
##3A4EC11.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a4ec1;
/* rgb */ color: rgb(58, 78, 193);
/* oklch */ color: oklch(47.9% 0.180 270.5);
Tailwind
colors: {
  custom: {
    50: '#817fd5',
    500: '#3a4ec1',
    950: '#000000',
  },
}
SCSS
$custom: #3a4ec1;
$custom-light: #817fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4ec1",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 231.111,
    "s": 53.785,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47927,
    "c": 0.18043,
    "h": 270.5
  },
  "luminance": 0.10199
}

Semantic roles & 50–950 ramp

primary
#3A4EC1
secondary
#CBC28C
accent
#C74BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A4EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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