#3A51C2#3A51C2

#3A51C2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.178 H 269.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#3A51C2
RGBrgb(58, 81, 194)
HSLhsl(230, 54%, 49%)
HSVhsv(230, 70%, 76%)
CMYKcmyk(70.1%, 58.2%, 0%, 23.9%)
CIE-LABlab(39.03, 29.47, -61.78)
CIE-LCHlch(39.03, 68.45, 295.51°)
OKLaboklab(48.58% -0.0008 -0.1781)
OKLCHoklch(48.58% 0.178 269.8)
XYZxyz(14.4216, 10.6780, 52.3295)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51C2 #C2AB3A
analogous
#3A95C2 #3A51C2 #673AC2
triadic
#3A51C2 #C23A51 #51C23A
tetradic
#3A51C2 #C23A95 #C2AB3A #3AC267
square
#3A51C2 #C23A95 #C2AB3A #3AC267
split-complementary
#3A51C2 #C2673A #95C23A
monochromatic
#1E2A64 #2C3D93 #3A51C2 #6779D2 #97A3E0

Accessibility & contrast

On white

6.70
#3A51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3A51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51C2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51C2#FFFFFF#000000##FFFFFF
##3A51C21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3a51c2;
/* rgb */ color: rgb(58, 81, 194);
/* oklch */ color: oklch(48.6% 0.178 269.8);
Tailwind
colors: {
  custom: {
    50: '#8181d5',
    500: '#3a51c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a51c2;
$custom-light: #8181d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51c2",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 229.853,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48575,
    "c": 0.17809,
    "h": 269.8
  },
  "luminance": 0.10679
}

Semantic roles & 50–950 ramp

primary
#3A51C2
secondary
#CBC18D
accent
#C44ADD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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