#3A5DC8#3A5DC8

#3A5DC8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.4% C 0.171 H 266.6°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#3A5DC8
RGBrgb(58, 93, 200)
HSLhsl(225, 56%, 51%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(71%, 53.5%, 0%, 21.6%)
CIE-LABlab(42.61, 23.93, -59.45)
CIE-LCHlch(42.61, 64.09, 291.92°)
OKLaboklab(51.4% -0.0101 -0.1711)
OKLCHoklch(51.4% 0.171 266.6)
XYZxyz(16.0810, 12.8967, 56.2742)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5DC8 #C8A53A
analogous
#3AA4C8 #3A5DC8 #5E3AC8
triadic
#3A5DC8 #C83A5D #5DC83A
tetradic
#3A5DC8 #C83AA4 #C8A53A #3AC85E
square
#3A5DC8 #C83AA4 #C8A53A #3AC85E
split-complementary
#3A5DC8 #C85E3A #A4C83A
monochromatic
#1E306A #2B469A #3A5DC8 #6A84D5 #9AACE3

Accessibility & contrast

On white

5.87
#3A5DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#3A5DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5DC8
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5DC8#FFFFFF#000000##FFFFFF
##3A5DC81.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6BCC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5dc8;
/* rgb */ color: rgb(58, 93, 200);
/* oklch */ color: oklch(51.4% 0.171 266.6);
Tailwind
colors: {
  custom: {
    50: '#828ad9',
    500: '#3a5dc8',
    950: '#000000',
  },
}
SCSS
$custom: #3a5dc8;
$custom-light: #828ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5dc8",
  "rgb": {
    "r": 58,
    "g": 93,
    "b": 200
  },
  "hsl": {
    "h": 225.211,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51398,
    "c": 0.17139,
    "h": 266.6
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#3A5DC8
secondary
#CEBF8F
accent
#BA48E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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