#3A4FA2#3A4FA2

#3A4FA2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.136 H 269.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#3A4FA2
RGBrgb(58, 79, 162)
HSLhsl(228, 47%, 43%)
HSVhsv(228, 64%, 64%)
CMYKcmyk(64.2%, 51.2%, 0%, 36.5%)
CIE-LABlab(36.17, 19.22, -47.50)
CIE-LCHlch(36.17, 51.24, 292.03°)
OKLaboklab(45.69% -0.0008 -0.1361)
OKLCHoklch(45.69% 0.136 269.6)
XYZxyz(11.0603, 9.0992, 35.3489)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4FA2 #A28D3A
analogous
#3A83A2 #3A4FA2 #593AA2
triadic
#3A4FA2 #A23A4F #4FA23A
tetradic
#3A4FA2 #A23A83 #A28D3A #3AA259
square
#3A4FA2 #A23A83 #A28D3A #3AA259
split-complementary
#3A4FA2 #A2593A #83A23A
monochromatic
#1A2348 #2A3975 #3A4FA2 #576CC3 #8494D3

Accessibility & contrast

On white

7.45
#3A4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3A4FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4FA2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4FA2#FFFFFF#000000##FFFFFF
##3A4FA21.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#0251A0
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a4fa2;
/* rgb */ color: rgb(58, 79, 162);
/* oklch */ color: oklch(45.7% 0.136 269.6);
Tailwind
colors: {
  custom: {
    50: '#7b80be',
    500: '#3a4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #3a4fa2;
$custom-light: #7b80be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4fa2",
  "rgb": {
    "r": 58,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 227.885,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45691,
    "c": 0.13613,
    "h": 269.6
  },
  "luminance": 0.091
}

Semantic roles & 50–950 ramp

primary
#3A4FA2
secondary
#BDAF7B
accent
#BC51D7
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3A4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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