#3E40C8#3E40C8

#3E40C8 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.205 H 274.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#3E40C8
RGBrgb(62, 64, 200)
HSLhsl(239, 56%, 51%)
HSVhsv(239, 69%, 78%)
CMYKcmyk(69%, 68%, 0%, 21.6%)
CIE-LABlab(35.71, 42.67, -70.69)
CIE-LCHlch(35.71, 82.57, 301.12°)
OKLaboklab(46.35% 0.0154 -0.2042)
OKLCHoklch(46.35% 0.205 274.3)
XYZxyz(14.2419, 8.8597, 55.5919)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40C8 #C8C63E
analogous
#3E85C8 #3E40C8 #813EC8
triadic
#3E40C8 #C83E40 #40C83E
tetradic
#3E40C8 #C83E85 #C8C63E #3EC881
square
#3E40C8 #C83E85 #C8C63E #3EC881
split-complementary
#3E40C8 #C8813E #85C83E
monochromatic
#1F206D #2D2E9C #3E40C8 #6E6FD6 #9D9EE3

Accessibility & contrast

On white

7.58
#3E40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3E40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40C8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40C8#FFFFFF#000000##FFFFFF
##3E40C81.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e40c8;
/* rgb */ color: rgb(62, 64, 200);
/* oklch */ color: oklch(46.4% 0.205 274.3);
Tailwind
colors: {
  custom: {
    50: '#8676da',
    500: '#3e40c8',
    950: '#000000',
  },
}
SCSS
$custom: #3e40c8;
$custom-light: #8676da;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40c8",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 239.13,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46353,
    "c": 0.20483,
    "h": 274.3
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#3E40C8
secondary
#CFCE92
accent
#DD49DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3E40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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