#3A5AC3#3A5AC3

#3A5AC3 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.4% C 0.168 H 267.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#3A5AC3
RGBrgb(58, 90, 195)
HSLhsl(226, 54%, 50%)
HSVhsv(226, 70%, 76%)
CMYKcmyk(70.3%, 53.8%, 0%, 23.5%)
CIE-LABlab(41.45, 24.03, -58.43)
CIE-LCHlch(41.45, 63.18, 292.36°)
OKLaboklab(50.42% -0.008 -0.1681)
OKLCHoklch(50.42% 0.168 267.3)
XYZxyz(15.2480, 12.1505, 53.1609)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5AC3 #C3A33A
analogous
#3A9FC3 #3A5AC3 #5E3AC3
triadic
#3A5AC3 #C33A5A #5AC33A
tetradic
#3A5AC3 #C33A9F #C3A33A #3AC35E
square
#3A5AC3 #C33A9F #C3A33A #3AC35E
split-complementary
#3A5AC3 #C35E3A #9FC33A
monochromatic
#1E2E65 #2C4494 #3A5AC3 #6881D2 #97A8E0

Accessibility & contrast

On white

6.12
#3A5AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#3A5AC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5AC3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5AC3#FFFFFF#000000##FFFFFF
##3A5AC31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0768C7
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3a5ac3;
/* rgb */ color: rgb(58, 90, 195);
/* oklch */ color: oklch(50.4% 0.168 267.3);
Tailwind
colors: {
  custom: {
    50: '#8188d6',
    500: '#3a5ac3',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ac3;
$custom-light: #8188d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ac3",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 195
  },
  "hsl": {
    "h": 225.985,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50415,
    "c": 0.1683,
    "h": 267.3
  },
  "luminance": 0.12152
}

Semantic roles & 50–950 ramp

primary
#3A5AC3
secondary
#CCBD8D
accent
#BB4ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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