#3B40CE#3B40CE

#3B40CE is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.7% C 0.213 H 273.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#3B40CE
RGBrgb(59, 64, 206)
HSLhsl(238, 60%, 52%)
HSVhsv(238, 71%, 81%)
CMYKcmyk(71.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.08, 44.34, -73.57)
CIE-LCHlch(36.08, 85.90, 301.08°)
OKLaboklab(46.74% 0.0113 -0.2127)
OKLCHoklch(46.74% 0.213 273)
XYZxyz(14.7739, 9.0514, 59.3490)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40CE #CEC93B
analogous
#3B8ACE #3B40CE #803BCE
triadic
#3B40CE #CE3B40 #40CE3B
tetradic
#3B40CE #CE3B8A #CEC93B #3BCE80
square
#3B40CE #CE3B8A #CEC93B #3BCE80
split-complementary
#3B40CE #CE803B #8ACE3B
monochromatic
#1D1F72 #292DA3 #3B40CE #6C70DA #9D9FE6

Accessibility & contrast

On white

7.47
#3B40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#3B40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40CE
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40CE#FFFFFF#000000##FFFFFF
##3B40CE1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004ECB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3b40ce;
/* rgb */ color: rgb(59, 64, 206);
/* oklch */ color: oklch(46.7% 0.213 273.0);
Tailwind
colors: {
  custom: {
    50: '#8676de',
    500: '#3b40ce',
    950: '#000000',
  },
}
SCSS
$custom: #3b40ce;
$custom-light: #8676de;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40ce",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 237.959,
    "s": 60,
    "l": 51.961
  },
  "oklch": {
    "l": 0.4674,
    "c": 0.21305,
    "h": 273
  },
  "luminance": 0.09053
}

Semantic roles & 50–950 ramp

primary
#3B40CE
secondary
#D3D092
accent
#DE45E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3B40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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