#3A3EC3#3A3EC3

#3A3EC3 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.3% C 0.202 H 273.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#3A3EC3
RGBrgb(58, 62, 195)
HSLhsl(238, 54%, 50%)
HSVhsv(238, 70%, 76%)
CMYKcmyk(70.3%, 68.2%, 0%, 23.5%)
CIE-LABlab(34.57, 41.72, -69.66)
CIE-LCHlch(34.57, 81.20, 300.92°)
OKLaboklab(45.32% 0.0127 -0.2013)
OKLCHoklch(45.32% 0.202 273.6)
XYZxyz(13.3146, 8.2836, 52.5164)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EC3 #C3BF3A
analogous
#3A83C3 #3A3EC3 #7B3AC3
triadic
#3A3EC3 #C33A3E #3EC33A
tetradic
#3A3EC3 #C33A83 #C3BF3A #3AC37B
square
#3A3EC3 #C33A83 #C3BF3A #3AC37B
split-complementary
#3A3EC3 #C37B3A #83C33A
monochromatic
#1E2065 #2C2F94 #3A3EC3 #686BD2 #9799E0

Accessibility & contrast

On white

7.90
#3A3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3A3EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EC3
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EC3#FFFFFF#000000##FFFFFF
##3A3EC31.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#004BC1
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a3ec3;
/* rgb */ color: rgb(58, 62, 195);
/* oklch */ color: oklch(45.3% 0.202 273.6);
Tailwind
colors: {
  custom: {
    50: '#8374d6',
    500: '#3a3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ec3;
$custom-light: #8374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ec3",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 238.248,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4532,
    "c": 0.20174,
    "h": 273.6
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#3A3EC3
secondary
#CCCA8D
accent
#D94ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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