#3A54BA#3A54BA

#3A54BA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.5% C 0.163 H 268.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#3A54BA
RGBrgb(58, 84, 186)
HSLhsl(228, 52%, 48%)
HSVhsv(228, 69%, 73%)
CMYKcmyk(68.8%, 54.8%, 0%, 27.1%)
CIE-LABlab(39.21, 24.64, -56.81)
CIE-LCHlch(39.21, 61.92, 293.45°)
OKLaboklab(48.52% -0.0035 -0.1634)
OKLCHoklch(48.52% 0.163 268.8)
XYZxyz(13.7751, 10.7840, 47.8004)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54BA #BAA03A
analogous
#3A94BA #3A54BA #603ABA
triadic
#3A54BA #BA3A54 #54BA3A
tetradic
#3A54BA #BA3A94 #BAA03A #3ABA60
square
#3A54BA #BA3A94 #BAA03A #3ABA60
split-complementary
#3A54BA #BA603A #94BA3A
monochromatic
#1D2A5D #2B3F8B #3A54BA #6379CE #92A1DD

Accessibility & contrast

On white

6.65
#3A54BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3A54BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54BA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54BA#FFFFFF#000000##FFFFFF
##3A54BA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3a54ba;
/* rgb */ color: rgb(58, 84, 186);
/* oklch */ color: oklch(48.5% 0.163 268.8);
Tailwind
colors: {
  custom: {
    50: '#7f83cf',
    500: '#3a54ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a54ba;
$custom-light: #7f83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54ba",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 227.813,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48522,
    "c": 0.16347,
    "h": 268.8
  },
  "luminance": 0.10785
}

Semantic roles & 50–950 ramp

primary
#3A54BA
secondary
#C8BB88
accent
#BF4CDC
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3A54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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