#3A54C2#3A54C2

#3A54C2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.2% C 0.174 H 269.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#3A54C2
RGBrgb(58, 84, 194)
HSLhsl(229, 54%, 49%)
HSVhsv(229, 70%, 76%)
CMYKcmyk(70.1%, 56.7%, 0%, 23.9%)
CIE-LABlab(39.80, 27.54, -60.52)
CIE-LCHlch(39.80, 66.49, 294.47°)
OKLaboklab(49.15% -0.0031 -0.1744)
OKLCHoklch(49.15% 0.174 269)
XYZxyz(14.6495, 11.1338, 52.4055)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54C2 #C2A83A
analogous
#3A98C2 #3A54C2 #643AC2
triadic
#3A54C2 #C23A54 #54C23A
tetradic
#3A54C2 #C23A98 #C2A83A #3AC264
square
#3A54C2 #C23A98 #C2A83A #3AC264
split-complementary
#3A54C2 #C2643A #98C23A
monochromatic
#1E2B64 #2C4093 #3A54C2 #677CD2 #97A5E0

Accessibility & contrast

On white

6.51
#3A54C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3A54C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54C2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54C2#FFFFFF#000000##FFFFFF
##3A54C21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3a54c2;
/* rgb */ color: rgb(58, 84, 194);
/* oklch */ color: oklch(49.2% 0.174 269.0);
Tailwind
colors: {
  custom: {
    50: '#8183d5',
    500: '#3a54c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a54c2;
$custom-light: #8183d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54c2",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 228.529,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49152,
    "c": 0.17439,
    "h": 269
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#3A54C2
secondary
#CBBF8D
accent
#C14ADD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A54C2

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

Preview Lab → · Contrast checker → · Palette generator →

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