#3A5BCD#3A5BCD

#3A5BCD is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.4% C 0.181 H 267.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#3A5BCD
RGBrgb(58, 91, 205)
HSLhsl(227, 60%, 52%)
HSVhsv(227, 72%, 80%)
CMYKcmyk(71.7%, 55.6%, 0%, 19.6%)
CIE-LABlab(42.44, 27.03, -62.61)
CIE-LCHlch(42.44, 68.19, 293.35°)
OKLaboklab(51.39% -0.0082 -0.1804)
OKLCHoklch(51.39% 0.181 267.4)
XYZxyz(16.5016, 12.7878, 59.3444)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BCD #CDAC3A
analogous
#3AA4CD #3A5BCD #633ACD
triadic
#3A5BCD #CD3A5B #5BCD3A
tetradic
#3A5BCD #CD3AA4 #CDAC3A #3ACD63
square
#3A5BCD #CD3AA4 #CDAC3A #3ACD63
split-complementary
#3A5BCD #CD633A #A4CD3A
monochromatic
#1C2F70 #2944A1 #3A5BCD #6B84D9 #9CACE6

Accessibility & contrast

On white

5.90
#3A5BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#3A5BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BCD
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BCD#FFFFFF#000000##FFFFFF
##3A5BCD1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5bcd;
/* rgb */ color: rgb(58, 91, 205);
/* oklch */ color: oklch(51.4% 0.181 267.4);
Tailwind
colors: {
  custom: {
    50: '#8389dd',
    500: '#3a5bcd',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bcd;
$custom-light: #8389dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bcd",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 226.531,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51387,
    "c": 0.18057,
    "h": 267.4
  },
  "luminance": 0.12789
}

Semantic roles & 50–950 ramp

primary
#3A5BCD
secondary
#D2C391
accent
#BF45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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