#3A5BCA#3A5BCA

#3A5BCA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.177 H 267.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#3A5BCA
RGBrgb(58, 91, 202)
HSLhsl(226, 58%, 51%)
HSVhsv(226, 71%, 79%)
CMYKcmyk(71.3%, 55%, 0%, 20.8%)
CIE-LABlab(42.22, 25.94, -61.23)
CIE-LCHlch(42.22, 66.50, 292.96°)
OKLaboklab(51.15% -0.0083 -0.1763)
OKLCHoklch(51.15% 0.177 267.3)
XYZxyz(16.1430, 12.6443, 57.4555)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BCA #CAA93A
analogous
#3AA3CA #3A5BCA #613ACA
triadic
#3A5BCA #CA3A5B #5BCA3A
tetradic
#3A5BCA #CA3AA3 #CAA93A #3ACA61
square
#3A5BCA #CA3AA3 #CAA93A #3ACA61
split-complementary
#3A5BCA #CA613A #A3CA3A
monochromatic
#1D2F6C #2A449D #3A5BCA #6A83D7 #9AABE4

Accessibility & contrast

On white

5.95
#3A5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#3A5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BCA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BCA#FFFFFF#000000##FFFFFF
##3A5BCA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5bca;
/* rgb */ color: rgb(58, 91, 202);
/* oklch */ color: oklch(51.2% 0.177 267.3);
Tailwind
colors: {
  custom: {
    50: '#8289db',
    500: '#3a5bca',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bca;
$custom-light: #8289db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bca",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 226.25,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51153,
    "c": 0.17655,
    "h": 267.3
  },
  "luminance": 0.12646
}

Semantic roles & 50–950 ramp

primary
#3A5BCA
secondary
#D0C190
accent
#BE47E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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