#3A5ECF#3A5ECF

#3A5ECF is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.1% C 0.180 H 266.7°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#3A5ECF
RGBrgb(58, 94, 207)
HSLhsl(226, 61%, 52%)
HSVhsv(226, 72%, 81%)
CMYKcmyk(72%, 54.6%, 0%, 18.8%)
CIE-LABlab(43.37, 25.83, -62.25)
CIE-LCHlch(43.37, 67.40, 292.54°)
OKLaboklab(52.13% -0.0104 -0.1793)
OKLCHoklch(52.13% 0.18 266.7)
XYZxyz(17.0062, 13.4082, 60.7112)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ECF #CFAB3A
analogous
#3AA9CF #3A5ECF #613ACF
triadic
#3A5ECF #CF3A5E #5ECF3A
tetradic
#3A5ECF #CF3AA9 #CFAB3A #3ACF61
square
#3A5ECF #CF3AA9 #CFAB3A #3ACF61
split-complementary
#3A5ECF #CF613A #A9CF3A
monochromatic
#1C3173 #2846A4 #3A5ECF #6B86DB #9CAEE7

Accessibility & contrast

On white

5.70
#3A5ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#3A5ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ECF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ECF#FFFFFF#000000##FFFFFF
##3A5ECF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#0060CD
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5ecf;
/* rgb */ color: rgb(58, 94, 207);
/* oklch */ color: oklch(52.1% 0.180 266.7);
Tailwind
colors: {
  custom: {
    50: '#838bde',
    500: '#3a5ecf',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ecf;
$custom-light: #838bde;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ecf",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 225.503,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.17959,
    "h": 266.7
  },
  "luminance": 0.1341
}

Semantic roles & 50–950 ramp

primary
#3A5ECF
secondary
#D3C392
accent
#BD44E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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