#3A5BCF#3A5BCF

#3A5BCF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.5% C 0.183 H 267.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#3A5BCF
RGBrgb(58, 91, 207)
HSLhsl(227, 61%, 52%)
HSVhsv(227, 72%, 81%)
CMYKcmyk(72%, 56%, 0%, 18.8%)
CIE-LABlab(42.59, 27.75, -63.52)
CIE-LCHlch(42.59, 69.32, 293.60°)
OKLaboklab(51.54% -0.0081 -0.1831)
OKLCHoklch(51.54% 0.183 267.5)
XYZxyz(16.7446, 12.8850, 60.6240)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BCF #CFAE3A
analogous
#3AA6CF #3A5BCF #633ACF
triadic
#3A5BCF #CF3A5B #5BCF3A
tetradic
#3A5BCF #CF3AA6 #CFAE3A #3ACF63
square
#3A5BCF #CF3AA6 #CFAE3A #3ACF63
split-complementary
#3A5BCF #CF633A #A6CF3A
monochromatic
#1C2F73 #2843A4 #3A5BCF #6B84DB #9CADE7

Accessibility & contrast

On white

5.87
#3A5BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#3A5BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BCF
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BCF#FFFFFF#000000##FFFFFF
##3A5BCF1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#00788C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5bcf;
/* rgb */ color: rgb(58, 91, 207);
/* oklch */ color: oklch(51.5% 0.183 267.5);
Tailwind
colors: {
  custom: {
    50: '#8389de',
    500: '#3a5bcf',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bcf;
$custom-light: #8389de;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bcf",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 207
  },
  "hsl": {
    "h": 226.711,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51545,
    "c": 0.18325,
    "h": 267.5
  },
  "luminance": 0.12887
}

Semantic roles & 50–950 ramp

primary
#3A5BCF
secondary
#D3C592
accent
#C044E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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