#3A40CD#3A40CD

#3A40CD is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.212 H 272.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#3A40CD
RGBrgb(58, 64, 205)
HSLhsl(238, 60%, 52%)
HSVhsv(238, 72%, 80%)
CMYKcmyk(71.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(35.93, 43.90, -73.25)
CIE-LCHlch(35.93, 85.39, 300.94°)
OKLaboklab(46.59% 0.0103 -0.2118)
OKLCHoklch(46.59% 0.212 272.8)
XYZxyz(14.5941, 8.9726, 58.7085)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40CD #CDC73A
analogous
#3A8ACD #3A40CD #7E3ACD
triadic
#3A40CD #CD3A40 #40CD3A
tetradic
#3A40CD #CD3A8A #CDC73A #3ACD7E
square
#3A40CD #CD3A8A #CDC73A #3ACD7E
split-complementary
#3A40CD #CD7E3A #8ACD3A
monochromatic
#1C2070 #292EA1 #3A40CD #6B6FD9 #9C9FE6

Accessibility & contrast

On white

7.51
#3A40CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3A40CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40CD
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40CD#FFFFFF#000000##FFFFFF
##3A40CD1.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#004ECA
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a40cd;
/* rgb */ color: rgb(58, 64, 205);
/* oklch */ color: oklch(46.6% 0.212 272.8);
Tailwind
colors: {
  custom: {
    50: '#8576dd',
    500: '#3a40cd',
    950: '#000000',
  },
}
SCSS
$custom: #3a40cd;
$custom-light: #8576dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40cd",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 237.551,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46587,
    "c": 0.21206,
    "h": 272.8
  },
  "luminance": 0.08974
}

Semantic roles & 50–950 ramp

primary
#3A40CD
secondary
#D2CF91
accent
#DC45E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3A40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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