#3B40B9#3B40B9

#3B40B9 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.186 H 274.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#3B40B9
RGBrgb(59, 64, 185)
HSLhsl(238, 52%, 48%)
HSVhsv(238, 68%, 73%)
CMYKcmyk(68.1%, 65.4%, 0%, 27.5%)
CIE-LABlab(34.19, 37.21, -64.41)
CIE-LCHlch(34.19, 74.38, 300.01°)
OKLaboklab(44.79% 0.0135 -0.1859)
OKLCHoklch(44.79% 0.186 274.1)
XYZxyz(12.3911, 8.0982, 46.7996)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40B9 #B9B43B
analogous
#3B7FB9 #3B40B9 #753BB9
triadic
#3B40B9 #B93B40 #40B93B
tetradic
#3B40B9 #B93B7F #B9B43B #3BB975
square
#3B40B9 #B93B7F #B9B43B #3BB975
split-complementary
#3B40B9 #B9753B #7FB93B
monochromatic
#1D205C #2C308B #3B40B9 #6468CD #9295DC

Accessibility & contrast

On white

8.02
#3B40B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3B40B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40B9
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40B9#FFFFFF#000000##FFFFFF
##3B40B91.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3b40b9;
/* rgb */ color: rgb(59, 64, 185);
/* oklch */ color: oklch(44.8% 0.186 274.1);
Tailwind
colors: {
  custom: {
    50: '#8175cf',
    500: '#3b40b9',
    950: '#000000',
  },
}
SCSS
$custom: #3b40b9;
$custom-light: #8175cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40b9",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 237.619,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44786,
    "c": 0.18642,
    "h": 274.1
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#3B40B9
secondary
#C7C588
accent
#D54DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3B40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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