#3A57C5#3A57C5

#3A57C5 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.175 H 268.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#3A57C5
RGBrgb(58, 87, 197)
HSLhsl(227, 55%, 50%)
HSVhsv(227, 71%, 77%)
CMYKcmyk(70.6%, 55.8%, 0%, 22.7%)
CIE-LABlab(40.81, 26.70, -60.63)
CIE-LCHlch(40.81, 66.25, 293.76°)
OKLaboklab(49.98% -0.0054 -0.1746)
OKLCHoklch(49.98% 0.175 268.2)
XYZxyz(15.2277, 11.7456, 54.2771)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A57C5 #C5A83A
analogous
#3A9DC5 #3A57C5 #623AC5
triadic
#3A57C5 #C53A57 #57C53A
tetradic
#3A57C5 #C53A9D #C5A83A #3AC562
square
#3A57C5 #C53A9D #C5A83A #3AC562
split-complementary
#3A57C5 #C5623A #9DC53A
monochromatic
#1E2D66 #2C4296 #3A57C5 #697FD3 #99A8E1

Accessibility & contrast

On white

6.27
#3A57C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#3A57C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A57C5
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A57C5#FFFFFF#000000##FFFFFF
##3A57C51.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3a57c5;
/* rgb */ color: rgb(58, 87, 197);
/* oklch */ color: oklch(50.0% 0.175 268.2);
Tailwind
colors: {
  custom: {
    50: '#8286d7',
    500: '#3a57c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a57c5;
$custom-light: #8286d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a57c5",
  "rgb": {
    "r": 58,
    "g": 87,
    "b": 197
  },
  "hsl": {
    "h": 227.482,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.17473,
    "h": 268.2
  },
  "luminance": 0.11747
}

Semantic roles & 50–950 ramp

primary
#3A57C5
secondary
#CDC08E
accent
#BF4ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A57C5

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

Preview Lab → · Contrast checker → · Palette generator →

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