#3A5FCD#3A5FCD

#3A5FCD is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.2% C 0.176 H 266.3°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#3A5FCD
RGBrgb(58, 95, 205)
HSLhsl(225, 60%, 52%)
HSVhsv(225, 72%, 80%)
CMYKcmyk(71.7%, 53.7%, 0%, 19.6%)
CIE-LABlab(43.49, 24.46, -60.90)
CIE-LCHlch(43.49, 65.63, 291.88°)
OKLaboklab(52.18% -0.0113 -0.1753)
OKLCHoklch(52.18% 0.176 266.3)
XYZxyz(16.8527, 13.4900, 59.4614)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FCD #CDA83A
analogous
#3AA9CD #3A5FCD #5F3ACD
triadic
#3A5FCD #CD3A5F #5FCD3A
tetradic
#3A5FCD #CD3AA9 #CDA83A #3ACD5F
square
#3A5FCD #CD3AA9 #CDA83A #3ACD5F
split-complementary
#3A5FCD #CD5F3A #A9CD3A
monochromatic
#1C3270 #2947A1 #3A5FCD #6B87D9 #9CAEE6

Accessibility & contrast

On white

5.68
#3A5FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#3A5FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FCD
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FCD#FFFFFF#000000##FFFFFF
##3A5FCD1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066ED1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3a5fcd;
/* rgb */ color: rgb(58, 95, 205);
/* oklch */ color: oklch(52.2% 0.176 266.3);
Tailwind
colors: {
  custom: {
    50: '#838bdd',
    500: '#3a5fcd',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fcd;
$custom-light: #838bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fcd",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 224.898,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52179,
    "c": 0.17569,
    "h": 266.3
  },
  "luminance": 0.13492
}

Semantic roles & 50–950 ramp

primary
#3A5FCD
secondary
#D2C191
accent
#BB45E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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