#3A5FC7#3A5FC7

#3A5FC7 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.7% C 0.168 H 266.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#3A5FC7
RGBrgb(58, 95, 199)
HSLhsl(224, 56%, 50%)
HSVhsv(224, 71%, 78%)
CMYKcmyk(70.9%, 52.3%, 0%, 22%)
CIE-LABlab(43.07, 22.27, -58.13)
CIE-LCHlch(43.07, 62.25, 290.97°)
OKLaboklab(51.73% -0.0118 -0.1671)
OKLCHoklch(51.73% 0.168 266)
XYZxyz(16.1423, 13.2058, 55.7200)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FC7 #C7A23A
analogous
#3AA6C7 #3A5FC7 #5B3AC7
triadic
#3A5FC7 #C73A5F #5FC73A
tetradic
#3A5FC7 #C73AA6 #C7A23A #3AC75B
square
#3A5FC7 #C73AA6 #C7A23A #3AC75B
split-complementary
#3A5FC7 #C75B3A #A6C73A
monochromatic
#1E3169 #2B4898 #3A5FC7 #6A86D5 #99ACE2

Accessibility & contrast

On white

5.77
#3A5FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#3A5FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FC7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FC7#FFFFFF#000000##FFFFFF
##3A5FC71.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196DCB
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5fc7;
/* rgb */ color: rgb(58, 95, 199);
/* oklch */ color: oklch(51.7% 0.168 266.0);
Tailwind
colors: {
  custom: {
    50: '#828bd9',
    500: '#3a5fc7',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fc7;
$custom-light: #828bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fc7",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 224.255,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51727,
    "c": 0.16757,
    "h": 266
  },
  "luminance": 0.13207
}

Semantic roles & 50–950 ramp

primary
#3A5FC7
secondary
#CEBD8F
accent
#B849DF
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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