#3B40B8#3B40B8

#3B40B8 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.185 H 274.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3B40B8
RGBrgb(59, 64, 184)
HSLhsl(238, 51%, 48%)
HSVhsv(238, 68%, 72%)
CMYKcmyk(67.9%, 65.2%, 0%, 27.8%)
CIE-LABlab(34.10, 36.86, -63.96)
CIE-LCHlch(34.10, 73.82, 299.96°)
OKLaboklab(44.7% 0.0136 -0.1846)
OKLCHoklch(44.7% 0.185 274.2)
XYZxyz(12.2859, 8.0562, 46.2456)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40B8 #B8B33B
analogous
#3B7EB8 #3B40B8 #743BB8
triadic
#3B40B8 #B83B40 #40B83B
tetradic
#3B40B8 #B83B7E #B8B33B #3BB874
square
#3B40B8 #B83B7E #B8B33B #3BB874
split-complementary
#3B40B8 #B8743B #7EB83B
monochromatic
#1D205B #2C308A #3B40B8 #6367CD #9294DC

Accessibility & contrast

On white

8.04
#3B40B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3B40B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40B8
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40B8#FFFFFF#000000##FFFFFF
##3B40B81.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3b40b8;
/* rgb */ color: rgb(59, 64, 184);
/* oklch */ color: oklch(44.7% 0.185 274.2);
Tailwind
colors: {
  custom: {
    50: '#8175ce',
    500: '#3b40b8',
    950: '#000000',
  },
}
SCSS
$custom: #3b40b8;
$custom-light: #8175ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40b8",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 237.6,
    "s": 51.44,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44696,
    "c": 0.18512,
    "h": 274.2
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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