#3A5BCB#3A5BCB

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

Color values

HEX#3A5BCB
RGBrgb(58, 91, 203)
HSLhsl(226, 58%, 51%)
HSVhsv(226, 71%, 80%)
CMYKcmyk(71.4%, 55.2%, 0%, 20.4%)
CIE-LABlab(42.30, 26.30, -61.69)
CIE-LCHlch(42.30, 67.07, 293.09°)
OKLaboklab(51.23% -0.0083 -0.1777)
OKLCHoklch(51.23% 0.178 267.3)
XYZxyz(16.2618, 12.6918, 58.0811)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BCB #CBAA3A
analogous
#3AA3CB #3A5BCB #613ACB
triadic
#3A5BCB #CB3A5B #5BCB3A
tetradic
#3A5BCB #CB3AA3 #CBAA3A #3ACB61
square
#3A5BCB #CB3AA3 #CBAA3A #3ACB61
split-complementary
#3A5BCB #CB613A #A3CB3A
monochromatic
#1D2F6E #2A449E #3A5BCB #6A83D8 #9BACE5

Accessibility & contrast

On white

5.93
#3A5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#3A5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BCB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BCB#FFFFFF#000000##FFFFFF
##3A5BCB1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a5bcb;
/* rgb */ color: rgb(58, 91, 203);
/* oklch */ color: oklch(51.2% 0.178 267.3);
Tailwind
colors: {
  custom: {
    50: '#8389dc',
    500: '#3a5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bcb;
$custom-light: #8389dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bcb",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 226.345,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51231,
    "c": 0.17789,
    "h": 267.3
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

primary
#3A5BCB
secondary
#D0C290
accent
#BE46E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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