#3B40C5#3B40C5

#3B40C5 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.9% C 0.202 H 273.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#3B40C5
RGBrgb(59, 64, 197)
HSLhsl(238, 54%, 50%)
HSVhsv(238, 70%, 77%)
CMYKcmyk(70.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(35.26, 41.31, -69.70)
CIE-LCHlch(35.26, 81.02, 300.65°)
OKLaboklab(45.89% 0.0123 -0.2014)
OKLCHoklch(45.89% 0.202 273.5)
XYZxyz(13.7117, 8.6265, 53.7550)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40C5 #C5C03B
analogous
#3B85C5 #3B40C5 #7B3BC5
triadic
#3B40C5 #C53B40 #40C53B
tetradic
#3B40C5 #C53B85 #C5C03B #3BC57B
square
#3B40C5 #C53B85 #C5C03B #3BC57B
split-complementary
#3B40C5 #C57B3B #85C53B
monochromatic
#1F2167 #2C3096 #3B40C5 #6A6ED3 #999CE1

Accessibility & contrast

On white

7.70
#3B40C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3B40C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40C5
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40C5#FFFFFF#000000##FFFFFF
##3B40C51.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3b40c5;
/* rgb */ color: rgb(59, 64, 197);
/* oklch */ color: oklch(45.9% 0.202 273.5);
Tailwind
colors: {
  custom: {
    50: '#8475d8',
    500: '#3b40c5',
    950: '#000000',
  },
}
SCSS
$custom: #3b40c5;
$custom-light: #8475d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40c5",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 237.826,
    "s": 54.331,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4589,
    "c": 0.2018,
    "h": 273.5
  },
  "luminance": 0.08628
}

Semantic roles & 50–950 ramp

primary
#3B40C5
secondary
#CDCB8F
accent
#D84ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3B40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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