#3A54AF#3A54AF

#3A54AF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.148 H 268.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#3A54AF
RGBrgb(58, 84, 175)
HSLhsl(227, 50%, 46%)
HSVhsv(227, 67%, 69%)
CMYKcmyk(66.9%, 52%, 0%, 31.4%)
CIE-LABlab(38.44, 20.65, -51.59)
CIE-LCHlch(38.44, 55.57, 291.81°)
OKLaboklab(47.69% -0.0044 -0.1481)
OKLCHoklch(47.69% 0.148 268.3)
XYZxyz(12.6505, 10.3341, 41.8771)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54AF #AF953A
analogous
#3A8EAF #3A54AF #5A3AAF
triadic
#3A54AF #AF3A54 #54AF3A
tetradic
#3A54AF #AF3A8E #AF953A #3AAF5A
square
#3A54AF #AF3A8E #AF953A #3AAF5A
split-complementary
#3A54AF #AF5A3A #8EAF3A
monochromatic
#1C2853 #2B3E81 #3A54AF #5D75C9 #8B9CD9

Accessibility & contrast

On white

6.85
#3A54AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3A54AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54AF
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54AF#FFFFFF#000000##FFFFFF
##3A54AF1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a54af;
/* rgb */ color: rgb(58, 84, 175);
/* oklch */ color: oklch(47.7% 0.148 268.3);
Tailwind
colors: {
  custom: {
    50: '#7d83c7',
    500: '#3a54af',
    950: '#000000',
  },
}
SCSS
$custom: #3a54af;
$custom-light: #7d83c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54af",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 226.667,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47687,
    "c": 0.14815,
    "h": 268.3
  },
  "luminance": 0.10335
}

Semantic roles & 50–950 ramp

primary
#3A54AF
secondary
#C3B482
accent
#BB4EDA
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3A54AF

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

Preview Lab → · Contrast checker → · Palette generator →

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