#3A40C8#3A40C8

#3A40C8 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.1% C 0.206 H 273.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3A40C8
RGBrgb(58, 64, 200)
HSLhsl(237, 56%, 51%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(71%, 68%, 0%, 21.6%)
CIE-LABlab(35.47, 42.21, -71.10)
CIE-LCHlch(35.47, 82.69, 300.70°)
OKLaboklab(46.11% 0.0108 -0.2055)
OKLCHoklch(46.11% 0.206 273)
XYZxyz(14.0002, 8.7351, 55.5806)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C8 #C8C23A
analogous
#3A87C8 #3A40C8 #7B3AC8
triadic
#3A40C8 #C83A40 #40C83A
tetradic
#3A40C8 #C83A87 #C8C23A #3AC87B
square
#3A40C8 #C83A87 #C8C23A #3AC87B
split-complementary
#3A40C8 #C87B3A #87C83A
monochromatic
#1E216A #2B309A #3A40C8 #6A6ED5 #9A9DE3

Accessibility & contrast

On white

7.64
#3A40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A40C8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C8#FFFFFF#000000##FFFFFF
##3A40C81.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a40c8;
/* rgb */ color: rgb(58, 64, 200);
/* oklch */ color: oklch(46.1% 0.206 273.0);
Tailwind
colors: {
  custom: {
    50: '#8475da',
    500: '#3a40c8',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c8;
$custom-light: #8475da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c8",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 237.465,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46113,
    "c": 0.20583,
    "h": 273
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#3A40C8
secondary
#CECC8F
accent
#D948E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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