#3B40CD#3B40CD

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

Color values

HEX#3B40CD
RGBrgb(59, 64, 205)
HSLhsl(238, 59%, 52%)
HSVhsv(238, 71%, 80%)
CMYKcmyk(71.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(35.99, 44.01, -73.15)
CIE-LCHlch(35.99, 85.37, 301.03°)
OKLaboklab(46.65% 0.0114 -0.2115)
OKLCHoklch(46.65% 0.212 273.1)
XYZxyz(14.6528, 9.0029, 58.7113)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40CD #CDC83B
analogous
#3B89CD #3B40CD #7F3BCD
triadic
#3B40CD #CD3B40 #40CD3B
tetradic
#3B40CD #CD3B89 #CDC83B #3BCD7F
square
#3B40CD #CD3B89 #CDC83B #3BCD7F
split-complementary
#3B40CD #CD7F3B #89CD3B
monochromatic
#1D2071 #292DA2 #3B40CD #6C70D9 #9D9FE6

Accessibility & contrast

On white

7.50
#3B40CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3B40CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40CD
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40CD#FFFFFF#000000##FFFFFF
##3B40CD1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b40cd;
/* rgb */ color: rgb(59, 64, 205);
/* oklch */ color: oklch(46.6% 0.212 273.1);
Tailwind
colors: {
  custom: {
    50: '#8576dd',
    500: '#3b40cd',
    950: '#000000',
  },
}
SCSS
$custom: #3b40cd;
$custom-light: #8576dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40cd",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 237.945,
    "s": 59.35,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46645,
    "c": 0.21181,
    "h": 273.1
  },
  "luminance": 0.09004
}

Semantic roles & 50–950 ramp

primary
#3B40CD
secondary
#D2D092
accent
#DD45E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3B40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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