#3A5FC9#3A5FC9

#3A5FC9 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.9% C 0.170 H 266.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#3A5FC9
RGBrgb(58, 95, 201)
HSLhsl(224, 57%, 51%)
HSVhsv(224, 71%, 79%)
CMYKcmyk(71.1%, 52.7%, 0%, 21.2%)
CIE-LABlab(43.21, 23.00, -59.05)
CIE-LCHlch(43.21, 63.38, 291.28°)
OKLaboklab(51.88% -0.0116 -0.1699)
OKLCHoklch(51.88% 0.17 266.1)
XYZxyz(16.3761, 13.2993, 56.9510)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FC9 #C9A43A
analogous
#3AA6C9 #3A5FC9 #5D3AC9
triadic
#3A5FC9 #C93A5F #5FC93A
tetradic
#3A5FC9 #C93AA6 #C9A43A #3AC95D
square
#3A5FC9 #C93AA6 #C9A43A #3AC95D
split-complementary
#3A5FC9 #C95D3A #A6C93A
monochromatic
#1D326B #2B489B #3A5FC9 #6A86D6 #9AADE3

Accessibility & contrast

On white

5.74
#3A5FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#3A5FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FC9
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FC9#FFFFFF#000000##FFFFFF
##3A5FC91.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146DCD
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#00788B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5fc9;
/* rgb */ color: rgb(58, 95, 201);
/* oklch */ color: oklch(51.9% 0.170 266.1);
Tailwind
colors: {
  custom: {
    50: '#828bda',
    500: '#3a5fc9',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fc9;
$custom-light: #828bda;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fc9",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 201
  },
  "hsl": {
    "h": 224.476,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51877,
    "c": 0.17028,
    "h": 266.1
  },
  "luminance": 0.13301
}

Semantic roles & 50–950 ramp

primary
#3A5FC9
secondary
#CFBF90
accent
#B948E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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