#3A5EC9#3A5EC9

#3A5EC9 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.7% C 0.172 H 266.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#3A5EC9
RGBrgb(58, 94, 201)
HSLhsl(225, 57%, 51%)
HSVhsv(225, 71%, 79%)
CMYKcmyk(71.1%, 53.2%, 0%, 21.2%)
CIE-LABlab(42.94, 23.65, -59.49)
CIE-LCHlch(42.94, 64.01, 291.68°)
OKLaboklab(51.68% -0.0108 -0.1712)
OKLCHoklch(51.68% 0.172 266.4)
XYZxyz(16.2866, 13.1203, 56.9212)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC9 #C9A53A
analogous
#3AA5C9 #3A5EC9 #5D3AC9
triadic
#3A5EC9 #C93A5E #5EC93A
tetradic
#3A5EC9 #C93AA5 #C9A53A #3AC95D
square
#3A5EC9 #C93AA5 #C9A53A #3AC95D
split-complementary
#3A5EC9 #C95D3A #A5C93A
monochromatic
#1D316B #2B479B #3A5EC9 #6A85D6 #9AADE3

Accessibility & contrast

On white

5.79
#3A5EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#3A5EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5EC9
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EC9#FFFFFF#000000##FFFFFF
##3A5EC91.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6CCD
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5ec9;
/* rgb */ color: rgb(58, 94, 201);
/* oklch */ color: oklch(51.7% 0.172 266.4);
Tailwind
colors: {
  custom: {
    50: '#828bda',
    500: '#3a5ec9',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec9;
$custom-light: #828bda;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec9",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 201
  },
  "hsl": {
    "h": 224.895,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51675,
    "c": 0.17151,
    "h": 266.4
  },
  "luminance": 0.13122
}

Semantic roles & 50–950 ramp

primary
#3A5EC9
secondary
#CFBF90
accent
#BA48E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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