#3B40DE#3B40DE

#3B40DE is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.233 H 272.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#3B40DE
RGBrgb(59, 64, 222)
HSLhsl(238, 71%, 55%)
HSVhsv(238, 73%, 87%)
CMYKcmyk(73.4%, 71.2%, 0%, 12.9%)
CIE-LABlab(37.61, 49.64, -80.28)
CIE-LCHlch(37.61, 94.39, 301.73°)
OKLaboklab(48.29% 0.0091 -0.2323)
OKLCHoklch(48.29% 0.233 272.2)
XYZxyz(16.8174, 9.8688, 70.1116)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40DE #DED93B
analogous
#3B91DE #3B40DE #883BDE
triadic
#3B40DE #DE3B40 #40DE3B
tetradic
#3B40DE #DE3B91 #DED93B #3BDE88
square
#3B40DE #DE3B91 #DED93B #3BDE88
split-complementary
#3B40DE #DE883B #91DE3B
monochromatic
#171A88 #2024BC #3B40DE #6F73E7 #A4A6F0

Accessibility & contrast

On white

7.06
#3B40DE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3B40DE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40DE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40DE#FFFFFF#000000##FFFFFF
##3B40DE1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E3
Deuteranopia (green-blind)
#0051DB
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3b40de;
/* rgb */ color: rgb(59, 64, 222);
/* oklch */ color: oklch(48.3% 0.233 272.2);
Tailwind
colors: {
  custom: {
    50: '#8976ea',
    500: '#3b40de',
    950: '#000000',
  },
}
SCSS
$custom: #3b40de;
$custom-light: #8976ea;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40de",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 238.16,
    "s": 71.179,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48293,
    "c": 0.2325,
    "h": 272.2
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#3B40DE
secondary
#DDDA98
accent
#E83AEE
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3B40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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