#3A5CCB#3A5CCB

#3A5CCB is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.4% C 0.177 H 267.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#3A5CCB
RGBrgb(58, 92, 203)
HSLhsl(226, 58%, 51%)
HSVhsv(226, 71%, 80%)
CMYKcmyk(71.4%, 54.7%, 0%, 20.4%)
CIE-LABlab(42.56, 25.66, -61.27)
CIE-LCHlch(42.56, 66.42, 292.73°)
OKLaboklab(51.43% -0.0091 -0.1764)
OKLCHoklch(51.43% 0.177 267.1)
XYZxyz(16.3478, 12.8639, 58.1098)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5CCB #CBA93A
analogous
#3AA4CB #3A5CCB #603ACB
triadic
#3A5CCB #CB3A5C #5CCB3A
tetradic
#3A5CCB #CB3AA4 #CBA93A #3ACB60
square
#3A5CCB #CB3AA4 #CBA93A #3ACB60
split-complementary
#3A5CCB #CB603A #A4CB3A
monochromatic
#1D306E #2A459E #3A5CCB #6A84D8 #9BACE5

Accessibility & contrast

On white

5.88
#3A5CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#3A5CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5CCB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5CCB#FFFFFF#000000##FFFFFF
##3A5CCB1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5ccb;
/* rgb */ color: rgb(58, 92, 203);
/* oklch */ color: oklch(51.4% 0.177 267.1);
Tailwind
colors: {
  custom: {
    50: '#8389dc',
    500: '#3a5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ccb;
$custom-light: #8389dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ccb",
  "rgb": {
    "r": 58,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 225.931,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51428,
    "c": 0.17667,
    "h": 267.1
  },
  "luminance": 0.12866
}

Semantic roles & 50–950 ramp

primary
#3A5CCB
secondary
#D0C190
accent
#BD46E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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