#3A51CB#3A51CB

#3A51CB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.190 H 269.8°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#3A51CB
RGBrgb(58, 81, 203)
HSLhsl(230, 58%, 51%)
HSVhsv(230, 71%, 80%)
CMYKcmyk(71.4%, 60.1%, 0%, 20.4%)
CIE-LABlab(39.74, 32.70, -65.85)
CIE-LCHlch(39.74, 73.52, 296.41°)
OKLaboklab(49.32% -0.0007 -0.19)
OKLCHoklch(49.32% 0.19 269.8)
XYZxyz(15.4632, 11.0946, 57.8149)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51CB #CBB43A
analogous
#3A99CB #3A51CB #6B3ACB
triadic
#3A51CB #CB3A51 #51CB3A
tetradic
#3A51CB #CB3A99 #CBB43A #3ACB6B
square
#3A51CB #CB3A99 #CBB43A #3ACB6B
split-complementary
#3A51CB #CB6B3A #99CB3A
monochromatic
#1D2A6E #2A3C9E #3A51CB #6A7CD8 #9BA7E5

Accessibility & contrast

On white

6.52
#3A51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#3A51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51CB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51CB#FFFFFF#000000##FFFFFF
##3A51CB1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3a51cb;
/* rgb */ color: rgb(58, 81, 203);
/* oklch */ color: oklch(49.3% 0.190 269.8);
Tailwind
colors: {
  custom: {
    50: '#8381dc',
    500: '#3a51cb',
    950: '#000000',
  },
}
SCSS
$custom: #3a51cb;
$custom-light: #8381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51cb",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 230.483,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49321,
    "c": 0.19005,
    "h": 269.8
  },
  "luminance": 0.11096
}

Semantic roles & 50–950 ramp

primary
#3A51CB
secondary
#D0C690
accent
#C946E1
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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