#3A4FA5#3A4FA5

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

Color values

HEX#3A4FA5
RGBrgb(58, 79, 165)
HSLhsl(228, 48%, 44%)
HSVhsv(228, 65%, 65%)
CMYKcmyk(64.8%, 52.1%, 0%, 35.3%)
CIE-LABlab(36.38, 20.30, -48.97)
CIE-LCHlch(36.38, 53.01, 292.52°)
OKLaboklab(45.91% -0.0005 -0.1404)
OKLCHoklch(45.91% 0.14 269.8)
XYZxyz(11.3301, 9.2071, 36.7701)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4FA5 #A5903A
analogous
#3A84A5 #3A4FA5 #5A3AA5
triadic
#3A4FA5 #A53A4F #4FA53A
tetradic
#3A4FA5 #A53A84 #A5903A #3AA55A
square
#3A4FA5 #A53A84 #A5903A #3AA55A
split-complementary
#3A4FA5 #A55A3A #84A53A
monochromatic
#1A244A #2A3978 #3A4FA5 #586DC4 #8595D4

Accessibility & contrast

On white

7.39
#3A4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3A4FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4FA5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4FA5#FFFFFF#000000##FFFFFF
##3A4FA51.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5BA8
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a4fa5;
/* rgb */ color: rgb(58, 79, 165);
/* oklch */ color: oklch(45.9% 0.140 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c80c0',
    500: '#3a4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #3a4fa5;
$custom-light: #7c80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4fa5",
  "rgb": {
    "r": 58,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 228.224,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45912,
    "c": 0.14043,
    "h": 269.8
  },
  "luminance": 0.09208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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