#3A5FCB#3A5FCB

#3A5FCB is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.0% C 0.173 H 266.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#3A5FCB
RGBrgb(58, 95, 203)
HSLhsl(225, 58%, 51%)
HSVhsv(225, 71%, 80%)
CMYKcmyk(71.4%, 53.2%, 0%, 20.4%)
CIE-LABlab(43.35, 23.73, -59.98)
CIE-LCHlch(43.35, 64.51, 291.59°)
OKLaboklab(52.03% -0.0115 -0.1726)
OKLCHoklch(52.03% 0.173 266.2)
XYZxyz(16.6129, 13.3940, 58.1981)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FCB #CBA63A
analogous
#3AA7CB #3A5FCB #5D3ACB
triadic
#3A5FCB #CB3A5F #5FCB3A
tetradic
#3A5FCB #CB3AA7 #CBA63A #3ACB5D
square
#3A5FCB #CB3AA7 #CBA63A #3ACB5D
split-complementary
#3A5FCB #CB5D3A #A7CB3A
monochromatic
#1D326E #2A479E #3A5FCB #6A86D8 #9BAEE5

Accessibility & contrast

On white

5.71
#3A5FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#3A5FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FCB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FCB#FFFFFF#000000##FFFFFF
##3A5FCB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6DCF
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5fcb;
/* rgb */ color: rgb(58, 95, 203);
/* oklch */ color: oklch(52.0% 0.173 266.2);
Tailwind
colors: {
  custom: {
    50: '#828bdc',
    500: '#3a5fcb',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fcb;
$custom-light: #828bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fcb",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 224.69,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52027,
    "c": 0.17299,
    "h": 266.2
  },
  "luminance": 0.13396
}

Semantic roles & 50–950 ramp

primary
#3A5FCB
secondary
#D0C090
accent
#BA46E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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