#3A5FCA#3A5FCA

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

Color values

HEX#3A5FCA
RGBrgb(58, 95, 202)
HSLhsl(225, 58%, 51%)
HSVhsv(225, 71%, 79%)
CMYKcmyk(71.3%, 53%, 0%, 20.8%)
CIE-LABlab(43.28, 23.37, -59.52)
CIE-LCHlch(43.28, 63.94, 291.44°)
OKLaboklab(51.95% -0.0116 -0.1713)
OKLCHoklch(51.95% 0.172 266.1)
XYZxyz(16.4941, 13.3465, 57.5725)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FCA #CAA53A
analogous
#3AA7CA #3A5FCA #5D3ACA
triadic
#3A5FCA #CA3A5F #5FCA3A
tetradic
#3A5FCA #CA3AA7 #CAA53A #3ACA5D
square
#3A5FCA #CA3AA7 #CAA53A #3ACA5D
split-complementary
#3A5FCA #CA5D3A #A7CA3A
monochromatic
#1D326C #2A489D #3A5FCA #6A86D7 #9AADE4

Accessibility & contrast

On white

5.72
#3A5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#3A5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FCA
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FCA#FFFFFF#000000##FFFFFF
##3A5FCA1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126DCE
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5fca;
/* rgb */ color: rgb(58, 95, 202);
/* oklch */ color: oklch(52.0% 0.172 266.1);
Tailwind
colors: {
  custom: {
    50: '#828bdb',
    500: '#3a5fca',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fca;
$custom-light: #828bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fca",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 224.583,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.17164,
    "h": 266.1
  },
  "luminance": 0.13348
}

Semantic roles & 50–950 ramp

primary
#3A5FCA
secondary
#D0BF90
accent
#B947E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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