#3A54C5#3A54C5

#3A54C5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.4% C 0.178 H 269.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#3A54C5
RGBrgb(58, 84, 197)
HSLhsl(229, 55%, 50%)
HSVhsv(229, 71%, 77%)
CMYKcmyk(70.6%, 57.4%, 0%, 22.7%)
CIE-LABlab(40.03, 28.63, -61.90)
CIE-LCHlch(40.03, 68.20, 294.82°)
OKLaboklab(49.39% -0.003 -0.1784)
OKLCHoklch(49.39% 0.178 269)
XYZxyz(14.9898, 11.2699, 54.1978)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54C5 #C5AB3A
analogous
#3A9AC5 #3A54C5 #653AC5
triadic
#3A54C5 #C53A54 #54C53A
tetradic
#3A54C5 #C53A9A #C5AB3A #3AC565
square
#3A54C5 #C53A9A #C5AB3A #3AC565
split-complementary
#3A54C5 #C5653A #9AC53A
monochromatic
#1E2C66 #2C4096 #3A54C5 #697DD3 #99A6E1

Accessibility & contrast

On white

6.45
#3A54C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A54C5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54C5#FFFFFF#000000##FFFFFF
##3A54C51.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a54c5;
/* rgb */ color: rgb(58, 84, 197);
/* oklch */ color: oklch(49.4% 0.178 269.0);
Tailwind
colors: {
  custom: {
    50: '#8283d7',
    500: '#3a54c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a54c5;
$custom-light: #8283d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54c5",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 197
  },
  "hsl": {
    "h": 228.777,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.49393,
    "c": 0.17843,
    "h": 269
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A54C5

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

Preview Lab → · Contrast checker → · Palette generator →

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