#3A40D2#3A40D2

#3A40D2 is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.1% C 0.218 H 272.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#3A40D2
RGBrgb(58, 64, 210)
HSLhsl(238, 63%, 53%)
HSVhsv(238, 72%, 82%)
CMYKcmyk(72.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(36.40, 45.58, -75.37)
CIE-LCHlch(36.40, 88.08, 301.16°)
OKLaboklab(47.07% 0.0096 -0.218)
OKLCHoklch(47.07% 0.218 272.5)
XYZxyz(15.2073, 9.2179, 61.9381)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40D2 #D2CC3A
analogous
#3A8CD2 #3A40D2 #803AD2
triadic
#3A40D2 #D23A40 #40D23A
tetradic
#3A40D2 #D23A8C #D2CC3A #3AD280
square
#3A40D2 #D23A8C #D2CC3A #3AD280
split-complementary
#3A40D2 #D2803A #8CD23A
monochromatic
#1B1F77 #262CA8 #3A40D2 #6C70DD #9EA1E9

Accessibility & contrast

On white

7.38
#3A40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3A40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40D2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40D2#FFFFFF#000000##FFFFFF
##3A40D21.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#004ECF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a40d2;
/* rgb */ color: rgb(58, 64, 210);
/* oklch */ color: oklch(47.1% 0.218 272.5);
Tailwind
colors: {
  custom: {
    50: '#8676e1',
    500: '#3a40d2',
    950: '#000000',
  },
}
SCSS
$custom: #3a40d2;
$custom-light: #8676e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40d2",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 237.632,
    "s": 62.81,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47067,
    "c": 0.21822,
    "h": 272.5
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#3A40D2
secondary
#D5D293
accent
#DF42E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #3A40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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