#3A54C4#3A54C4

#3A54C4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.3% C 0.177 H 269.0°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#3A54C4
RGBrgb(58, 84, 196)
HSLhsl(229, 54%, 50%)
HSVhsv(229, 70%, 77%)
CMYKcmyk(70.4%, 57.1%, 0%, 23.1%)
CIE-LABlab(39.96, 28.26, -61.44)
CIE-LCHlch(39.96, 67.63, 294.70°)
OKLaboklab(49.31% -0.0031 -0.1771)
OKLCHoklch(49.31% 0.177 269)
XYZxyz(14.8756, 11.2242, 53.5964)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54C4 #C4AA3A
analogous
#3A99C4 #3A54C4 #653AC4
triadic
#3A54C4 #C43A54 #54C43A
tetradic
#3A54C4 #C43A99 #C4AA3A #3AC465
square
#3A54C4 #C43A99 #C4AA3A #3AC465
split-complementary
#3A54C4 #C4653A #99C43A
monochromatic
#1E2C66 #2C4095 #3A54C4 #697DD3 #98A6E0

Accessibility & contrast

On white

6.47
#3A54C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#3A54C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54C4
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54C4#FFFFFF#000000##FFFFFF
##3A54C41.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#007084
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3a54c4;
/* rgb */ color: rgb(58, 84, 196);
/* oklch */ color: oklch(49.3% 0.177 269.0);
Tailwind
colors: {
  custom: {
    50: '#8283d7',
    500: '#3a54c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a54c4;
$custom-light: #8283d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54c4",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 196
  },
  "hsl": {
    "h": 228.696,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49312,
    "c": 0.17709,
    "h": 269
  },
  "luminance": 0.11226
}

Semantic roles & 50–950 ramp

primary
#3A54C4
secondary
#CCC08E
accent
#C24ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A54C4

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

Preview Lab → · Contrast checker → · Palette generator →

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