#3A3EC8#3A3EC8

#3A3EC8 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.8% C 0.208 H 273.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3A3EC8
RGBrgb(58, 62, 200)
HSLhsl(238, 56%, 51%)
HSVhsv(238, 71%, 78%)
CMYKcmyk(71%, 69%, 0%, 21.6%)
CIE-LABlab(35.03, 43.40, -71.82)
CIE-LCHlch(35.03, 83.92, 301.15°)
OKLaboklab(45.8% 0.012 -0.2076)
OKLCHoklch(45.8% 0.208 273.3)
XYZxyz(13.8894, 8.5136, 55.5437)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EC8 #C8C43A
analogous
#3A85C8 #3A3EC8 #7D3AC8
triadic
#3A3EC8 #C83A3E #3EC83A
tetradic
#3A3EC8 #C83A85 #C8C43A #3AC87D
square
#3A3EC8 #C83A85 #C8C43A #3AC87D
split-complementary
#3A3EC8 #C87D3A #85C83A
monochromatic
#1E206A #2B2E9A #3A3EC8 #6A6DD5 #9A9CE3

Accessibility & contrast

On white

7.77
#3A3EC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3A3EC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EC8
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EC8#FFFFFF#000000##FFFFFF
##3A3EC81.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#004CC5
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a3ec8;
/* rgb */ color: rgb(58, 62, 200);
/* oklch */ color: oklch(45.8% 0.208 273.3);
Tailwind
colors: {
  custom: {
    50: '#8474da',
    500: '#3a3ec8',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ec8;
$custom-light: #8474da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ec8",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 200
  },
  "hsl": {
    "h": 238.31,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.208,
    "h": 273.3
  },
  "luminance": 0.08515
}

Semantic roles & 50–950 ramp

primary
#3A3EC8
secondary
#CECD8F
accent
#DB48E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A3EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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