#3A5ECC#3A5ECC

#3A5ECC is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.9% C 0.176 H 266.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#3A5ECC
RGBrgb(58, 94, 204)
HSLhsl(225, 59%, 51%)
HSVhsv(225, 72%, 80%)
CMYKcmyk(71.6%, 53.9%, 0%, 20%)
CIE-LABlab(43.16, 24.74, -60.87)
CIE-LCHlch(43.16, 65.71, 292.12°)
OKLaboklab(51.9% -0.0106 -0.1752)
OKLCHoklch(51.9% 0.176 266.5)
XYZxyz(16.6429, 13.2628, 58.7979)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ECC #CCA83A
analogous
#3AA7CC #3A5ECC #5F3ACC
triadic
#3A5ECC #CC3A5E #5ECC3A
tetradic
#3A5ECC #CC3AA7 #CCA83A #3ACC5F
square
#3A5ECC #CC3AA7 #CCA83A #3ACC5F
split-complementary
#3A5ECC #CC5F3A #A7CC3A
monochromatic
#1D316F #2946A0 #3A5ECC #6B86D9 #9BADE5

Accessibility & contrast

On white

5.75
#3A5ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#3A5ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ECC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ECC#FFFFFF#000000##FFFFFF
##3A5ECC1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026DD0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5ecc;
/* rgb */ color: rgb(58, 94, 204);
/* oklch */ color: oklch(51.9% 0.176 266.5);
Tailwind
colors: {
  custom: {
    50: '#838bdc',
    500: '#3a5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ecc;
$custom-light: #838bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ecc",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 225.205,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51903,
    "c": 0.17556,
    "h": 266.5
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#3A5ECC
secondary
#D1C191
accent
#BC46E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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