#3A51CD#3A51CD

#3A51CD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.5% C 0.193 H 269.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#3A51CD
RGBrgb(58, 81, 205)
HSLhsl(231, 60%, 52%)
HSVhsv(231, 72%, 80%)
CMYKcmyk(71.7%, 60.5%, 0%, 19.6%)
CIE-LABlab(39.90, 33.41, -66.75)
CIE-LCHlch(39.90, 74.64, 296.59°)
OKLaboklab(49.49% -0.0007 -0.1927)
OKLCHoklch(49.49% 0.193 269.8)
XYZxyz(15.7030, 11.1906, 59.0782)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51CD #CDB63A
analogous
#3A9BCD #3A51CD #6D3ACD
triadic
#3A51CD #CD3A51 #51CD3A
tetradic
#3A51CD #CD3A9B #CDB63A #3ACD6D
square
#3A51CD #CD3A9B #CDB63A #3ACD6D
split-complementary
#3A51CD #CD6D3A #9BCD3A
monochromatic
#1C2A70 #293CA1 #3A51CD #6B7CD9 #9CA7E6

Accessibility & contrast

On white

6.48
#3A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3A51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51CD
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51CD#FFFFFF#000000##FFFFFF
##3A51CD1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0057CB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3a51cd;
/* rgb */ color: rgb(58, 81, 205);
/* oklch */ color: oklch(49.5% 0.193 269.8);
Tailwind
colors: {
  custom: {
    50: '#8481dd',
    500: '#3a51cd',
    950: '#000000',
  },
}
SCSS
$custom: #3a51cd;
$custom-light: #8481dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51cd",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 230.612,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4949,
    "c": 0.19268,
    "h": 269.8
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#3A51CD
secondary
#D2C891
accent
#CA45E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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