#3A5ACF#3A5ACF

#3A5ACF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.4% C 0.184 H 267.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#3A5ACF
RGBrgb(58, 90, 207)
HSLhsl(227, 61%, 52%)
HSVhsv(227, 72%, 81%)
CMYKcmyk(72%, 56.5%, 0%, 18.8%)
CIE-LABlab(42.33, 28.39, -63.94)
CIE-LCHlch(42.33, 69.96, 293.95°)
OKLaboklab(51.35% -0.0073 -0.1843)
OKLCHoklch(51.35% 0.184 267.7)
XYZxyz(16.6597, 12.7151, 60.5957)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ACF #CFAF3A
analogous
#3AA5CF #3A5ACF #653ACF
triadic
#3A5ACF #CF3A5A #5ACF3A
tetradic
#3A5ACF #CF3AA5 #CFAF3A #3ACF65
square
#3A5ACF #CF3AA5 #CFAF3A #3ACF65
split-complementary
#3A5ACF #CF653A #A5CF3A
monochromatic
#1C2F73 #2843A4 #3A5ACF #6B83DB #9CACE7

Accessibility & contrast

On white

5.93
#3A5ACF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#3A5ACF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ACF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ACF#FFFFFF#000000##FFFFFF
##3A5ACF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#00778C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5acf;
/* rgb */ color: rgb(58, 90, 207);
/* oklch */ color: oklch(51.4% 0.184 267.7);
Tailwind
colors: {
  custom: {
    50: '#8388df',
    500: '#3a5acf',
    950: '#000000',
  },
}
SCSS
$custom: #3a5acf;
$custom-light: #8388df;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5acf",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 207
  },
  "hsl": {
    "h": 227.114,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51351,
    "c": 0.18446,
    "h": 267.7
  },
  "luminance": 0.12717
}

Semantic roles & 50–950 ramp

primary
#3A5ACF
secondary
#D3C592
accent
#C244E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ACF

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

Preview Lab → · Contrast checker → · Palette generator →

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