#3A5FC3#3A5FC3

#3A5FC3 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.162 H 265.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#3A5FC3
RGBrgb(58, 95, 195)
HSLhsl(224, 54%, 50%)
HSVhsv(224, 70%, 76%)
CMYKcmyk(70.3%, 51.3%, 0%, 23.5%)
CIE-LABlab(42.80, 20.81, -56.25)
CIE-LCHlch(42.80, 59.98, 290.30°)
OKLaboklab(51.43% -0.0122 -0.1616)
OKLCHoklch(51.43% 0.162 265.7)
XYZxyz(15.6840, 13.0225, 53.3062)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FC3 #C39E3A
analogous
#3AA3C3 #3A5FC3 #5A3AC3
triadic
#3A5FC3 #C33A5F #5FC33A
tetradic
#3A5FC3 #C33AA3 #C39E3A #3AC35A
square
#3A5FC3 #C33AA3 #C39E3A #3AC35A
split-complementary
#3A5FC3 #C35A3A #A3C33A
monochromatic
#1E3165 #2C4894 #3A5FC3 #6885D2 #97ABE0

Accessibility & contrast

On white

5.83
#3A5FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3A5FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FC3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FC3#FFFFFF#000000##FFFFFF
##3A5FC31.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216CC7
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5fc3;
/* rgb */ color: rgb(58, 95, 195);
/* oklch */ color: oklch(51.4% 0.162 265.7);
Tailwind
colors: {
  custom: {
    50: '#818bd6',
    500: '#3a5fc3',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fc3;
$custom-light: #818bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fc3",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 195
  },
  "hsl": {
    "h": 223.796,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51432,
    "c": 0.1621,
    "h": 265.7
  },
  "luminance": 0.13024
}

Semantic roles & 50–950 ramp

primary
#3A5FC3
secondary
#CCBB8D
accent
#B64ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #3A5FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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