#3A54DC#3A54DC

#3A54DC is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.3% C 0.209 H 269.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#3A54DC
RGBrgb(58, 84, 220)
HSLhsl(230, 70%, 55%)
HSVhsv(230, 74%, 86%)
CMYKcmyk(73.6%, 61.8%, 0%, 13.7%)
CIE-LABlab(41.85, 36.85, -72.17)
CIE-LCHlch(41.85, 81.03, 297.05°)
OKLaboklab(51.31% -0.003 -0.2085)
OKLCHoklch(51.31% 0.209 269.2)
XYZxyz(17.8291, 12.4056, 69.1512)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54DC #DCC23A
analogous
#3AA5DC #3A54DC #713ADC
triadic
#3A54DC #DC3A54 #54DC3A
tetradic
#3A54DC #DC3AA5 #DCC23A #3ADC71
square
#3A54DC #DC3AA5 #DCC23A #3ADC71
split-complementary
#3A54DC #DC713A #A5DC3A
monochromatic
#172984 #2139B8 #3A54DC #6E81E5 #A2AEEE

Accessibility & contrast

On white

6.03
#3A54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#3A54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54DC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54DC#FFFFFF#000000##FFFFFF
##3A54DC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#005BD9
Tritanopia (blue-blind)
#007790
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a54dc;
/* rgb */ color: rgb(58, 84, 220);
/* oklch */ color: oklch(51.3% 0.209 269.2);
Tailwind
colors: {
  custom: {
    50: '#8784e8',
    500: '#3a54dc',
    950: '#000000',
  },
}
SCSS
$custom: #3a54dc;
$custom-light: #8784e8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54dc",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 230.37,
    "s": 69.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51314,
    "c": 0.20857,
    "h": 269.2
  },
  "luminance": 0.12407
}

Semantic roles & 50–950 ramp

primary
#3A54DC
secondary
#DBD097
accent
#D03BED
background
#F9F8FE
surface
#F1EFFD
border
#CBCAD5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #3A54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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