#3A4AAA#3A4AAA

#3A4AAA is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.154 H 271.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#3A4AAA
RGBrgb(58, 74, 170)
HSLhsl(231, 49%, 45%)
HSVhsv(231, 66%, 67%)
CMYKcmyk(65.9%, 56.5%, 0%, 33.3%)
CIE-LABlab(35.40, 25.38, -53.54)
CIE-LCHlch(35.40, 59.25, 295.36°)
OKLaboklab(45.29% 0.0045 -0.154)
OKLCHoklch(45.29% 0.154 271.7)
XYZxyz(11.4470, 8.6984, 39.0981)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4AAA #AA9A3A
analogous
#3A82AA #3A4AAA #623AAA
triadic
#3A4AAA #AA3A4A #4AAA3A
tetradic
#3A4AAA #AA3A82 #AA9A3A #3AAA62
square
#3A4AAA #AA3A82 #AA9A3A #3AAA62
split-complementary
#3A4AAA #AA623A #82AA3A
monochromatic
#1B224F #2A367C #3A4AAA #5A6AC7 #8893D6

Accessibility & contrast

On white

7.66
#3A4AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3A4AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4AAA
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4AAA#FFFFFF#000000##FFFFFF
##3A4AAA1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#006172
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a4aaa;
/* rgb */ color: rgb(58, 74, 170);
/* oklch */ color: oklch(45.3% 0.154 271.7);
Tailwind
colors: {
  custom: {
    50: '#7d7cc4',
    500: '#3a4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #3a4aaa;
$custom-light: #7d7cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4aaa",
  "rgb": {
    "r": 58,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 231.429,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45286,
    "c": 0.15403,
    "h": 271.7
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

primary
#3A4AAA
secondary
#C1B77F
accent
#C54FD9
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3A4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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