#3B40CB#3B40CB

#3B40CB is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.5% C 0.209 H 273.2°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#3B40CB
RGBrgb(59, 64, 203)
HSLhsl(238, 58%, 51%)
HSVhsv(238, 71%, 80%)
CMYKcmyk(70.9%, 68.5%, 0%, 20.4%)
CIE-LABlab(35.80, 43.33, -72.29)
CIE-LCHlch(35.80, 84.28, 300.94°)
OKLaboklab(46.46% 0.0116 -0.209)
OKLCHoklch(46.46% 0.209 273.2)
XYZxyz(14.4129, 8.9070, 57.4480)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40CB #CBC63B
analogous
#3B88CB #3B40CB #7E3BCB
triadic
#3B40CB #CB3B40 #40CB3B
tetradic
#3B40CB #CB3B88 #CBC63B #3BCB7E
square
#3B40CB #CB3B88 #CBC63B #3BCB7E
split-complementary
#3B40CB #CB7E3B #88CB3B
monochromatic
#1D206E #2A2E9F #3B40CB #6B6FD8 #9C9EE5

Accessibility & contrast

On white

7.55
#3B40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3B40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40CB
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40CB#FFFFFF#000000##FFFFFF
##3B40CB1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3b40cb;
/* rgb */ color: rgb(59, 64, 203);
/* oklch */ color: oklch(46.5% 0.209 273.2);
Tailwind
colors: {
  custom: {
    50: '#8575dc',
    500: '#3b40cb',
    950: '#000000',
  },
}
SCSS
$custom: #3b40cb;
$custom-light: #8575dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40cb",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 237.917,
    "s": 58.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46455,
    "c": 0.20932,
    "h": 273.2
  },
  "luminance": 0.08908
}

Semantic roles & 50–950 ramp

primary
#3B40CB
secondary
#D1CE91
accent
#DC47E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3B40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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