#3A5DC6#3A5DC6

#3A5DC6 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.169 H 266.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#3A5DC6
RGBrgb(58, 93, 198)
HSLhsl(225, 55%, 50%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(70.7%, 53%, 0%, 22.4%)
CIE-LABlab(42.47, 23.20, -58.53)
CIE-LCHlch(42.47, 62.96, 291.62°)
OKLaboklab(51.25% -0.0102 -0.1684)
OKLCHoklch(51.25% 0.169 266.5)
XYZxyz(15.8488, 12.8038, 55.0513)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5DC6 #C6A33A
analogous
#3AA3C6 #3A5DC6 #5D3AC6
triadic
#3A5DC6 #C63A5D #5DC63A
tetradic
#3A5DC6 #C63AA3 #C6A33A #3AC65D
square
#3A5DC6 #C63AA3 #C6A33A #3AC65D
split-complementary
#3A5DC6 #C65D3A #A3C63A
monochromatic
#1E3068 #2C4797 #3A5DC6 #6984D4 #99ABE1

Accessibility & contrast

On white

5.90
#3A5DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#3A5DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5DC6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5DC6#FFFFFF#000000##FFFFFF
##3A5DC61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126BCA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5dc6;
/* rgb */ color: rgb(58, 93, 198);
/* oklch */ color: oklch(51.2% 0.169 266.5);
Tailwind
colors: {
  custom: {
    50: '#818ad8',
    500: '#3a5dc6',
    950: '#000000',
  },
}
SCSS
$custom: #3a5dc6;
$custom-light: #818ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5dc6",
  "rgb": {
    "r": 58,
    "g": 93,
    "b": 198
  },
  "hsl": {
    "h": 225,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51247,
    "c": 0.16867,
    "h": 266.5
  },
  "luminance": 0.12805
}

Semantic roles & 50–950 ramp

primary
#3A5DC6
secondary
#CDBE8F
accent
#B949DE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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