#3A5EC3#3A5EC3

#3A5EC3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.163 H 266.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#3A5EC3
RGBrgb(58, 94, 195)
HSLhsl(224, 54%, 50%)
HSVhsv(224, 70%, 76%)
CMYKcmyk(70.3%, 51.8%, 0%, 23.5%)
CIE-LABlab(42.53, 21.46, -56.69)
CIE-LCHlch(42.53, 60.62, 290.73°)
OKLaboklab(51.23% -0.0114 -0.163)
OKLCHoklch(51.23% 0.163 266)
XYZxyz(15.5945, 12.8435, 53.2764)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC3 #C39F3A
analogous
#3AA2C3 #3A5EC3 #5B3AC3
triadic
#3A5EC3 #C33A5E #5EC33A
tetradic
#3A5EC3 #C33AA2 #C39F3A #3AC35B
square
#3A5EC3 #C33AA2 #C39F3A #3AC35B
split-complementary
#3A5EC3 #C35B3A #A2C33A
monochromatic
#1E3165 #2C4794 #3A5EC3 #6884D2 #97AAE0

Accessibility & contrast

On white

5.88
#3A5EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#3A5EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5EC3
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EC3#FFFFFF#000000##FFFFFF
##3A5EC31.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6BC7
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5ec3;
/* rgb */ color: rgb(58, 94, 195);
/* oklch */ color: oklch(51.2% 0.163 266.0);
Tailwind
colors: {
  custom: {
    50: '#818bd6',
    500: '#3a5ec3',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec3;
$custom-light: #818bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec3",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 195
  },
  "hsl": {
    "h": 224.234,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51226,
    "c": 0.16335,
    "h": 266
  },
  "luminance": 0.12845
}

Semantic roles & 50–950 ramp

primary
#3A5EC3
secondary
#CCBB8D
accent
#B74ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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