#3A40C6#3A40C6

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

Color values

HEX#3A40C6
RGBrgb(58, 64, 198)
HSLhsl(237, 55%, 50%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(70.7%, 67.7%, 0%, 22.4%)
CIE-LABlab(35.29, 41.53, -70.23)
CIE-LCHlch(35.29, 81.59, 300.60°)
OKLaboklab(45.92% 0.0111 -0.203)
OKLCHoklch(45.92% 0.203 273.1)
XYZxyz(13.7679, 8.6422, 54.3577)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C6 #C6C03A
analogous
#3A86C6 #3A40C6 #7A3AC6
triadic
#3A40C6 #C63A40 #40C63A
tetradic
#3A40C6 #C63A86 #C6C03A #3AC67A
square
#3A40C6 #C63A86 #C6C03A #3AC67A
split-complementary
#3A40C6 #C67A3A #86C63A
monochromatic
#1E2168 #2C3097 #3A40C6 #696ED4 #999CE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A40C6#FFFFFF#000000##FFFFFF
##3A40C61.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)
#005ACA
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a40c6;
/* rgb */ color: rgb(58, 64, 198);
/* oklch */ color: oklch(45.9% 0.203 273.1);
Tailwind
colors: {
  custom: {
    50: '#8475d8',
    500: '#3a40c6',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c6;
$custom-light: #8475d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c6",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 237.429,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45924,
    "c": 0.20331,
    "h": 273.1
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#3A40C6
secondary
#CDCB8F
accent
#D849DE
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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