#3B40D2#3B40D2

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

Color values

HEX#3B40D2
RGBrgb(59, 64, 210)
HSLhsl(238, 63%, 53%)
HSVhsv(238, 72%, 82%)
CMYKcmyk(71.9%, 69.5%, 0%, 17.6%)
CIE-LABlab(36.46, 45.68, -75.27)
CIE-LCHlch(36.46, 88.05, 301.25°)
OKLaboklab(47.12% 0.0107 -0.2177)
OKLCHoklch(47.12% 0.218 272.8)
XYZxyz(15.2660, 9.2482, 61.9408)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40D2 #D2CD3B
analogous
#3B8CD2 #3B40D2 #813BD2
triadic
#3B40D2 #D23B40 #40D23B
tetradic
#3B40D2 #D23B8C #D2CD3B #3BD281
square
#3B40D2 #D23B8C #D2CD3B #3BD281
split-complementary
#3B40D2 #D2813B #8CD23B
monochromatic
#1B1E77 #272BA9 #3B40D2 #6D71DD #9FA1E9

Accessibility & contrast

On white

7.37
#3B40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#3B40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40D2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40D2#FFFFFF#000000##FFFFFF
##3B40D21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b40d2;
/* rgb */ color: rgb(59, 64, 210);
/* oklch */ color: oklch(47.1% 0.218 272.8);
Tailwind
colors: {
  custom: {
    50: '#8776e1',
    500: '#3b40d2',
    950: '#000000',
  },
}
SCSS
$custom: #3b40d2;
$custom-light: #8776e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40d2",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 238.013,
    "s": 62.656,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47123,
    "c": 0.21797,
    "h": 272.8
  },
  "luminance": 0.0925
}

Semantic roles & 50–950 ramp

primary
#3B40D2
secondary
#D5D394
accent
#E042E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #3B40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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