#3A51BC#3A51BC

#3A51BC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.170 H 269.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#3A51BC
RGBrgb(58, 81, 188)
HSLhsl(229, 53%, 48%)
HSVhsv(229, 69%, 74%)
CMYKcmyk(69.1%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.58, 27.31, -59.02)
CIE-LCHlch(38.58, 65.03, 294.83°)
OKLaboklab(48.09% -0.0009 -0.17)
OKLCHoklch(48.09% 0.17 269.7)
XYZxyz(13.7614, 10.4139, 48.8521)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51BC #BCA53A
analogous
#3A92BC #3A51BC #643ABC
triadic
#3A51BC #BC3A51 #51BC3A
tetradic
#3A51BC #BC3A92 #BCA53A #3ABC64
square
#3A51BC #BC3A92 #BCA53A #3ABC64
split-complementary
#3A51BC #BC643A #92BC3A
monochromatic
#1D295E #2C3D8D #3A51BC #6477CF #93A0DE

Accessibility & contrast

On white

6.81
#3A51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3A51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51BC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51BC#FFFFFF#000000##FFFFFF
##3A51BC1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3a51bc;
/* rgb */ color: rgb(58, 81, 188);
/* oklch */ color: oklch(48.1% 0.170 269.7);
Tailwind
colors: {
  custom: {
    50: '#8081d1',
    500: '#3a51bc',
    950: '#000000',
  },
}
SCSS
$custom: #3a51bc;
$custom-light: #8081d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51bc",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 229.385,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4809,
    "c": 0.16997,
    "h": 269.7
  },
  "luminance": 0.10415
}

Semantic roles & 50–950 ramp

primary
#3A51BC
secondary
#C9BD89
accent
#C34CDC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3A51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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