#3A5DC4#3A5DC4

#3A5DC4 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.166 H 266.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#3A5DC4
RGBrgb(58, 93, 196)
HSLhsl(225, 54%, 50%)
HSVhsv(225, 70%, 77%)
CMYKcmyk(70.4%, 52.6%, 0%, 23.1%)
CIE-LABlab(42.33, 22.46, -57.59)
CIE-LCHlch(42.33, 61.82, 291.31°)
OKLaboklab(51.1% -0.0104 -0.1656)
OKLCHoklch(51.1% 0.166 266.4)
XYZxyz(15.6196, 12.7122, 53.8444)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5DC4 #C4A13A
analogous
#3AA2C4 #3A5DC4 #5C3AC4
triadic
#3A5DC4 #C43A5D #5DC43A
tetradic
#3A5DC4 #C43AA2 #C4A13A #3AC45C
square
#3A5DC4 #C43AA2 #C4A13A #3AC45C
split-complementary
#3A5DC4 #C45C3A #A2C43A
monochromatic
#1E3066 #2C4795 #3A5DC4 #6984D3 #98AAE0

Accessibility & contrast

On white

5.93
#3A5DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#3A5DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5DC4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5DC4#FFFFFF#000000##FFFFFF
##3A5DC41.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176BC8
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5dc4;
/* rgb */ color: rgb(58, 93, 196);
/* oklch */ color: oklch(51.1% 0.166 266.4);
Tailwind
colors: {
  custom: {
    50: '#818ad7',
    500: '#3a5dc4',
    950: '#000000',
  },
}
SCSS
$custom: #3a5dc4;
$custom-light: #818ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5dc4",
  "rgb": {
    "r": 58,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 224.783,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51096,
    "c": 0.16595,
    "h": 266.4
  },
  "luminance": 0.12714
}

Semantic roles & 50–950 ramp

primary
#3A5DC4
secondary
#CCBC8E
accent
#B84ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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