#3A4EC6#3A4EC6

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

Color values

HEX#3A4EC6
RGBrgb(58, 78, 198)
HSLhsl(231, 55%, 50%)
HSVhsv(231, 71%, 78%)
CMYKcmyk(70.7%, 60.6%, 0%, 22.4%)
CIE-LABlab(38.59, 32.82, -64.82)
CIE-LCHlch(38.59, 72.66, 296.86°)
OKLaboklab(48.35% 0.0015 -0.1871)
OKLCHoklch(48.35% 0.187 270.5)
XYZxyz(14.6589, 10.4241, 54.6546)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4EC6 #C6B23A
analogous
#3A94C6 #3A4EC6 #6C3AC6
triadic
#3A4EC6 #C63A4E #4EC63A
tetradic
#3A4EC6 #C63A94 #C6B23A #3AC66C
square
#3A4EC6 #C63A94 #C6B23A #3AC66C
split-complementary
#3A4EC6 #C66C3A #94C63A
monochromatic
#1E2968 #2C3B97 #3A4EC6 #6979D4 #99A3E1

Accessibility & contrast

On white

6.81
#3A4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A4EC6
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4EC6#FFFFFF#000000##FFFFFF
##3A4EC61.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3a4ec6;
/* rgb */ color: rgb(58, 78, 198);
/* oklch */ color: oklch(48.3% 0.187 270.5);
Tailwind
colors: {
  custom: {
    50: '#827fd8',
    500: '#3a4ec6',
    950: '#000000',
  },
}
SCSS
$custom: #3a4ec6;
$custom-light: #827fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4ec6",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 231.429,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48347,
    "c": 0.18707,
    "h": 270.5
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#3A4EC6
secondary
#CDC48F
accent
#C949DE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A4EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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