#3B40CC#3B40CC

#3B40CC is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.211 H 273.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3B40CC
RGBrgb(59, 64, 204)
HSLhsl(238, 59%, 52%)
HSVhsv(238, 71%, 80%)
CMYKcmyk(71.1%, 68.6%, 0%, 20%)
CIE-LABlab(35.90, 43.67, -72.72)
CIE-LCHlch(35.90, 84.83, 300.99°)
OKLaboklab(46.55% 0.0115 -0.2103)
OKLCHoklch(46.55% 0.211 273.1)
XYZxyz(14.5325, 8.9548, 58.0776)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40CC #CCC73B
analogous
#3B89CC #3B40CC #7F3BCC
triadic
#3B40CC #CC3B40 #40CC3B
tetradic
#3B40CC #CC3B89 #CCC73B #3BCC7F
square
#3B40CC #CC3B89 #CCC73B #3BCC7F
split-complementary
#3B40CC #CC7F3B #89CC3B
monochromatic
#1D2070 #2A2EA0 #3B40CC #6C6FD9 #9C9FE5

Accessibility & contrast

On white

7.52
#3B40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3B40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40CC
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40CC#FFFFFF#000000##FFFFFF
##3B40CC1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3b40cc;
/* rgb */ color: rgb(59, 64, 204);
/* oklch */ color: oklch(46.6% 0.211 273.1);
Tailwind
colors: {
  custom: {
    50: '#8576dd',
    500: '#3b40cc',
    950: '#000000',
  },
}
SCSS
$custom: #3b40cc;
$custom-light: #8576dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40cc",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 237.931,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4655,
    "c": 0.21057,
    "h": 273.1
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#3B40CC
secondary
#D1CF92
accent
#DD46E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3B40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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