#3A40C9#3A40C9

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

Color values

HEX#3A40C9
RGBrgb(58, 64, 201)
HSLhsl(237, 57%, 51%)
HSVhsv(237, 71%, 79%)
CMYKcmyk(71.1%, 68.2%, 0%, 21.2%)
CIE-LABlab(35.56, 42.55, -71.53)
CIE-LCHlch(35.56, 83.23, 300.75°)
OKLaboklab(46.21% 0.0107 -0.2068)
OKLCHoklch(46.21% 0.207 273)
XYZxyz(14.1174, 8.7820, 56.1981)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C9 #C9C33A
analogous
#3A87C9 #3A40C9 #7C3AC9
triadic
#3A40C9 #C93A40 #40C93A
tetradic
#3A40C9 #C93A87 #C9C33A #3AC97C
square
#3A40C9 #C93A87 #C9C33A #3AC97C
split-complementary
#3A40C9 #C97C3A #87C93A
monochromatic
#1D216B #2B2F9B #3A40C9 #6A6FD6 #9A9DE3

Accessibility & contrast

On white

7.62
#3A40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3A40C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C9
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C9#FFFFFF#000000##FFFFFF
##3A40C91.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a40c9;
/* rgb */ color: rgb(58, 64, 201);
/* oklch */ color: oklch(46.2% 0.207 273.0);
Tailwind
colors: {
  custom: {
    50: '#8475db',
    500: '#3a40c9',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c9;
$custom-light: #8475db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c9",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 237.483,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46207,
    "c": 0.20708,
    "h": 273
  },
  "luminance": 0.08783
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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