#3B40DD#3B40DD

#3B40DD is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.231 H 272.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#3B40DD
RGBrgb(59, 64, 221)
HSLhsl(238, 70%, 55%)
HSVhsv(238, 73%, 87%)
CMYKcmyk(73.3%, 71%, 0%, 13.3%)
CIE-LABlab(37.51, 49.31, -79.87)
CIE-LCHlch(37.51, 93.87, 301.69°)
OKLaboklab(48.19% 0.0092 -0.2311)
OKLCHoklch(48.19% 0.231 272.3)
XYZxyz(16.6838, 9.8153, 69.4079)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40DD #DDD83B
analogous
#3B91DD #3B40DD #873BDD
triadic
#3B40DD #DD3B40 #40DD3B
tetradic
#3B40DD #DD3B91 #DDD83B #3BDD87
square
#3B40DD #DD3B91 #DDD83B #3BDD87
split-complementary
#3B40DD #DD873B #91DD3B
monochromatic
#171B86 #2025BA #3B40DD #6F73E6 #A3A6EF

Accessibility & contrast

On white

7.09
#3B40DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3B40DD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40DD
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40DD#FFFFFF#000000##FFFFFF
##3B40DD1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E2
Deuteranopia (green-blind)
#0050DA
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3b40dd;
/* rgb */ color: rgb(59, 64, 221);
/* oklch */ color: oklch(48.2% 0.231 272.3);
Tailwind
colors: {
  custom: {
    50: '#8976e9',
    500: '#3b40dd',
    950: '#000000',
  },
}
SCSS
$custom: #3b40dd;
$custom-light: #8976e9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40dd",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 238.148,
    "s": 70.435,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48194,
    "c": 0.23129,
    "h": 272.3
  },
  "luminance": 0.09817
}

Semantic roles & 50–950 ramp

primary
#3B40DD
secondary
#DCDA98
accent
#E83BED
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3B40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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