#3B40DB#3B40DB

#3B40DB is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.229 H 272.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#3B40DB
RGBrgb(59, 64, 219)
HSLhsl(238, 69%, 55%)
HSVhsv(238, 73%, 86%)
CMYKcmyk(73.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(37.32, 48.66, -79.04)
CIE-LCHlch(37.32, 92.82, 301.62°)
OKLaboklab(48% 0.0095 -0.2287)
OKLCHoklch(48% 0.229 272.4)
XYZxyz(16.4189, 9.7094, 68.0129)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40DB #DBD63B
analogous
#3B90DB #3B40DB #863BDB
triadic
#3B40DB #DB3B40 #40DB3B
tetradic
#3B40DB #DB3B90 #DBD63B #3BDB86
square
#3B40DB #DB3B90 #DBD63B #3BDB86
split-complementary
#3B40DB #DB863B #90DB3B
monochromatic
#181B83 #2226B7 #3B40DB #6F72E4 #A2A5EE

Accessibility & contrast

On white

7.14
#3B40DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3B40DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40DB
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40DB#FFFFFF#000000##FFFFFF
##3B40DB1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE0
Deuteranopia (green-blind)
#0050D8
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3b40db;
/* rgb */ color: rgb(59, 64, 219);
/* oklch */ color: oklch(48.0% 0.229 272.4);
Tailwind
colors: {
  custom: {
    50: '#8876e7',
    500: '#3b40db',
    950: '#000000',
  },
}
SCSS
$custom: #3b40db;
$custom-light: #8876e7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40db",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 238.125,
    "s": 68.966,
    "l": 54.51
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.2289,
    "h": 272.4
  },
  "luminance": 0.09711
}

Semantic roles & 50–950 ramp

primary
#3B40DB
secondary
#DBD997
accent
#E63CEC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3B40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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