#3A3EC0#3A3EC0

#3A3EC0 is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.198 H 273.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#3A3EC0
RGBrgb(58, 62, 192)
HSLhsl(238, 54%, 49%)
HSVhsv(238, 70%, 75%)
CMYKcmyk(69.8%, 67.7%, 0%, 24.7%)
CIE-LABlab(34.29, 40.70, -68.36)
CIE-LCHlch(34.29, 79.55, 300.77°)
OKLaboklab(45.04% 0.013 -0.1975)
OKLCHoklch(45.04% 0.198 273.8)
XYZxyz(12.9788, 8.1493, 50.7479)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EC0 #C0BC3A
analogous
#3A81C0 #3A3EC0 #793AC0
triadic
#3A3EC0 #C03A3E #3EC03A
tetradic
#3A3EC0 #C03A81 #C0BC3A #3AC079
square
#3A3EC0 #C03A81 #C0BC3A #3AC079
split-complementary
#3A3EC0 #C0793A #81C03A
monochromatic
#1E2062 #2C2F91 #3A3EC0 #666AD1 #9598DF

Accessibility & contrast

On white

7.98
#3A3EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A3EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EC0
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EC0#FFFFFF#000000##FFFFFF
##3A3EC01.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#004ABE
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a3ec0;
/* rgb */ color: rgb(58, 62, 192);
/* oklch */ color: oklch(45.0% 0.198 273.8);
Tailwind
colors: {
  custom: {
    50: '#8274d4',
    500: '#3a3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ec0;
$custom-light: #8274d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ec0",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 238.209,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45038,
    "c": 0.19795,
    "h": 273.8
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#3A3EC0
secondary
#CAC98B
accent
#D94BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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