#3A5FD4#3A5FD4

#3A5FD4 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.185 H 266.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#3A5FD4
RGBrgb(58, 95, 212)
HSLhsl(226, 64%, 53%)
HSVhsv(226, 73%, 83%)
CMYKcmyk(72.6%, 55.2%, 0%, 16.9%)
CIE-LABlab(44.00, 27.01, -64.10)
CIE-LCHlch(44.00, 69.56, 292.85°)
OKLaboklab(52.72% -0.0108 -0.1847)
OKLCHoklch(52.72% 0.185 266.6)
XYZxyz(17.7166, 13.8355, 64.0114)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FD4 #D4AF3A
analogous
#3AACD4 #3A5FD4 #623AD4
triadic
#3A5FD4 #D43A5F #5FD43A
tetradic
#3A5FD4 #D43AAC #D4AF3A #3AD462
square
#3A5FD4 #D43AAC #D4AF3A #3AD462
split-complementary
#3A5FD4 #D4623A #ACD43A
monochromatic
#1A3179 #2546AB #3A5FD4 #6C88DF #9EB1EA

Accessibility & contrast

On white

5.57
#3A5FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#3A5FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FD4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FD4#FFFFFF#000000##FFFFFF
##3A5FD41.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0061D2
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #3a5fd4;
/* rgb */ color: rgb(58, 95, 212);
/* oklch */ color: oklch(52.7% 0.185 266.6);
Tailwind
colors: {
  custom: {
    50: '#848be2',
    500: '#3a5fd4',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fd4;
$custom-light: #848be2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fd4",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 225.584,
    "s": 64.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52718,
    "c": 0.18505,
    "h": 266.6
  },
  "luminance": 0.13837
}

Semantic roles & 50–950 ramp

primary
#3A5FD4
secondary
#D6C694
accent
#BF41E7
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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