#3A4FA6#3A4FA6

#3A4FA6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.142 H 269.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#3A4FA6
RGBrgb(58, 79, 166)
HSLhsl(228, 48%, 44%)
HSVhsv(228, 65%, 65%)
CMYKcmyk(65.1%, 52.4%, 0%, 34.9%)
CIE-LABlab(36.45, 20.66, -49.45)
CIE-LCHlch(36.45, 53.59, 292.68°)
OKLaboklab(45.99% -0.0004 -0.1419)
OKLCHoklch(45.99% 0.142 269.8)
XYZxyz(11.4215, 9.2437, 37.2513)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4FA6 #A6913A
analogous
#3A85A6 #3A4FA6 #5B3AA6
triadic
#3A4FA6 #A63A4F #4FA63A
tetradic
#3A4FA6 #A63A85 #A6913A #3AA65B
square
#3A4FA6 #A63A85 #A6913A #3AA65B
split-complementary
#3A4FA6 #A65B3A #85A63A
monochromatic
#1A244B #2A3979 #3A4FA6 #586DC5 #8695D5

Accessibility & contrast

On white

7.37
#3A4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#3A4FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4FA6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4FA6#FFFFFF#000000##FFFFFF
##3A4FA61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BA9
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a4fa6;
/* rgb */ color: rgb(58, 79, 166);
/* oklch */ color: oklch(46.0% 0.142 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c80c1',
    500: '#3a4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #3a4fa6;
$custom-light: #7c80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4fa6",
  "rgb": {
    "r": 58,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 228.333,
    "s": 48.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45986,
    "c": 0.14186,
    "h": 269.8
  },
  "luminance": 0.09245
}

Semantic roles & 50–950 ramp

primary
#3A4FA6
secondary
#BFB27D
accent
#BD50D8
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3A4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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