#3A5ECD#3A5ECD

#3A5ECD is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.0% C 0.177 H 266.6°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#3A5ECD
RGBrgb(58, 94, 205)
HSLhsl(225, 60%, 52%)
HSVhsv(225, 72%, 80%)
CMYKcmyk(71.7%, 54.1%, 0%, 19.6%)
CIE-LABlab(43.23, 25.11, -61.33)
CIE-LCHlch(43.23, 66.27, 292.26°)
OKLaboklab(51.98% -0.0105 -0.1766)
OKLCHoklch(51.98% 0.177 266.6)
XYZxyz(16.7632, 13.3110, 59.4316)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ECD #CDA93A
analogous
#3AA8CD #3A5ECD #603ACD
triadic
#3A5ECD #CD3A5E #5ECD3A
tetradic
#3A5ECD #CD3AA8 #CDA93A #3ACD60
square
#3A5ECD #CD3AA8 #CDA93A #3ACD60
split-complementary
#3A5ECD #CD603A #A8CD3A
monochromatic
#1C3170 #2946A1 #3A5ECD #6B86D9 #9CAEE6

Accessibility & contrast

On white

5.73
#3A5ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#3A5ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ECD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ECD#FFFFFF#000000##FFFFFF
##3A5ECD1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5ecd;
/* rgb */ color: rgb(58, 94, 205);
/* oklch */ color: oklch(52.0% 0.177 266.6);
Tailwind
colors: {
  custom: {
    50: '#838bdd',
    500: '#3a5ecd',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ecd;
$custom-light: #838bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ecd",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 225.306,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.17691,
    "h": 266.6
  },
  "luminance": 0.13313
}

Semantic roles & 50–950 ramp

primary
#3A5ECD
secondary
#D2C291
accent
#BC45E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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