#3A3EC5#3A3EC5

#3A3EC5 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.5% C 0.204 H 273.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3A3EC5
RGBrgb(58, 62, 197)
HSLhsl(238, 55%, 50%)
HSVhsv(238, 71%, 77%)
CMYKcmyk(70.6%, 68.5%, 0%, 22.7%)
CIE-LABlab(34.75, 42.39, -70.53)
CIE-LCHlch(34.75, 82.29, 301.01°)
OKLaboklab(45.51% 0.0124 -0.2039)
OKLCHoklch(45.51% 0.204 273.5)
XYZxyz(13.5422, 8.3747, 53.7153)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EC5 #C5C13A
analogous
#3A84C5 #3A3EC5 #7B3AC5
triadic
#3A3EC5 #C53A3E #3EC53A
tetradic
#3A3EC5 #C53A84 #C5C13A #3AC57B
square
#3A3EC5 #C53A84 #C5C13A #3AC57B
split-complementary
#3A3EC5 #C57B3A #84C53A
monochromatic
#1E2066 #2C2F96 #3A3EC5 #696CD3 #999BE1

Accessibility & contrast

On white

7.85
#3A3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3A3EC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EC5
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EC5#FFFFFF#000000##FFFFFF
##3A3EC51.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004BC2
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a3ec5;
/* rgb */ color: rgb(58, 62, 197);
/* oklch */ color: oklch(45.5% 0.204 273.5);
Tailwind
colors: {
  custom: {
    50: '#8374d8',
    500: '#3a3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ec5;
$custom-light: #8374d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ec5",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 238.273,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.20426,
    "h": 273.5
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#3A3EC5
secondary
#CDCB8E
accent
#DA4ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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