#3A5EAC#3A5EAC

#3A5EAC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.131 H 263.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#3A5EAC
RGBrgb(58, 94, 172)
HSLhsl(221, 50%, 45%)
HSVhsv(221, 66%, 67%)
CMYKcmyk(66.3%, 45.3%, 0%, 32.5%)
CIE-LABlab(41.03, 13.06, -45.65)
CIE-LCHlch(41.03, 47.48, 285.97°)
OKLaboklab(49.6% -0.0145 -0.1305)
OKLCHoklch(49.6% 0.131 263.7)
XYZxyz(13.1914, 11.8822, 40.6200)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EAC #AC883A
analogous
#3A97AC #3A5EAC #4F3AAC
triadic
#3A5EAC #AC3A5E #5EAC3A
tetradic
#3A5EAC #AC3A97 #AC883A #3AAC4F
square
#3A5EAC #AC3A97 #AC883A #3AAC4F
split-complementary
#3A5EAC #AC4F3A #97AC3A
monochromatic
#1B2C50 #2B457E #3A5EAC #5B7EC8 #89A2D7

Accessibility & contrast

On white

6.22
#3A5EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#3A5EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5EAC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EAC#FFFFFF#000000##FFFFFF
##3A5EAC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AF
Deuteranopia (green-blind)
#245CAA
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a5eac;
/* rgb */ color: rgb(58, 94, 172);
/* oklch */ color: oklch(49.6% 0.131 263.7);
Tailwind
colors: {
  custom: {
    50: '#7c8bc5',
    500: '#3a5eac',
    950: '#000000',
  },
}
SCSS
$custom: #3a5eac;
$custom-light: #7c8bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5eac",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 172
  },
  "hsl": {
    "h": 221.053,
    "s": 49.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49602,
    "c": 0.13127,
    "h": 263.7
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

primary
#3A5EAC
secondary
#C2AD80
accent
#AD4FD9
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3A5EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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