#3B40C8#3B40C8

#3B40C8 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.206 H 273.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#3B40C8
RGBrgb(59, 64, 200)
HSLhsl(238, 56%, 51%)
HSVhsv(238, 71%, 78%)
CMYKcmyk(70.5%, 68%, 0%, 21.6%)
CIE-LABlab(35.53, 42.32, -71.00)
CIE-LCHlch(35.53, 82.66, 300.80°)
OKLaboklab(46.17% 0.012 -0.2052)
OKLCHoklch(46.17% 0.206 273.3)
XYZxyz(14.0589, 8.7654, 55.5834)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40C8 #C8C33B
analogous
#3B87C8 #3B40C8 #7C3BC8
triadic
#3B40C8 #C83B40 #40C83B
tetradic
#3B40C8 #C83B87 #C8C33B #3BC87C
square
#3B40C8 #C83B87 #C8C33B #3BC87C
split-complementary
#3B40C8 #C87C3B #87C83B
monochromatic
#1E216B #2B2F9A #3B40C8 #6B6FD5 #9B9DE3

Accessibility & contrast

On white

7.63
#3B40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3B40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40C8
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40C8#FFFFFF#000000##FFFFFF
##3B40C81.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#004DC5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3b40c8;
/* rgb */ color: rgb(59, 64, 200);
/* oklch */ color: oklch(46.2% 0.206 273.3);
Tailwind
colors: {
  custom: {
    50: '#8475da',
    500: '#3b40c8',
    950: '#000000',
  },
}
SCSS
$custom: #3b40c8;
$custom-light: #8475da;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40c8",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 237.872,
    "s": 56.175,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46171,
    "c": 0.20558,
    "h": 273.3
  },
  "luminance": 0.08767
}

Semantic roles & 50–950 ramp

primary
#3B40C8
secondary
#CFCC90
accent
#DA48DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3B40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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