#3A5BC9#3A5BC9

#3A5BC9 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.175 H 267.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#3A5BC9
RGBrgb(58, 91, 201)
HSLhsl(226, 57%, 51%)
HSVhsv(226, 71%, 79%)
CMYKcmyk(71.1%, 54.7%, 0%, 21.2%)
CIE-LABlab(42.15, 25.58, -60.77)
CIE-LCHlch(42.15, 65.94, 292.82°)
OKLaboklab(51.08% -0.0084 -0.175)
OKLCHoklch(51.08% 0.175 267.3)
XYZxyz(16.0250, 12.5971, 56.8340)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BC9 #C9A83A
analogous
#3AA2C9 #3A5BC9 #603AC9
triadic
#3A5BC9 #C93A5B #5BC93A
tetradic
#3A5BC9 #C93AA2 #C9A83A #3AC960
square
#3A5BC9 #C93AA2 #C9A83A #3AC960
split-complementary
#3A5BC9 #C9603A #A2C93A
monochromatic
#1D2F6B #2B459B #3A5BC9 #6A83D6 #9AABE3

Accessibility & contrast

On white

5.97
#3A5BC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#3A5BC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BC9
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BC9#FFFFFF#000000##FFFFFF
##3A5BC91.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACD
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a5bc9;
/* rgb */ color: rgb(58, 91, 201);
/* oklch */ color: oklch(51.1% 0.175 267.3);
Tailwind
colors: {
  custom: {
    50: '#8288da',
    500: '#3a5bc9',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bc9;
$custom-light: #8288da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bc9",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 201
  },
  "hsl": {
    "h": 226.154,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51076,
    "c": 0.1752,
    "h": 267.3
  },
  "luminance": 0.12599
}

Semantic roles & 50–950 ramp

primary
#3A5BC9
secondary
#CFC090
accent
#BD48E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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