#3A40C3#3A40C3

#3A40C3 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.200 H 273.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3A40C3
RGBrgb(58, 64, 195)
HSLhsl(237, 54%, 50%)
HSVhsv(237, 70%, 76%)
CMYKcmyk(70.3%, 67.2%, 0%, 23.5%)
CIE-LABlab(35.01, 40.51, -68.93)
CIE-LCHlch(35.01, 79.95, 300.44°)
OKLaboklab(45.64% 0.0114 -0.1992)
OKLCHoklch(45.64% 0.2 273.3)
XYZxyz(13.4254, 8.5052, 52.5533)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C3 #C3BD3A
analogous
#3A85C3 #3A40C3 #783AC3
triadic
#3A40C3 #C33A40 #40C33A
tetradic
#3A40C3 #C33A85 #C3BD3A #3AC378
square
#3A40C3 #C33A85 #C3BD3A #3AC378
split-complementary
#3A40C3 #C3783A #85C33A
monochromatic
#1E2165 #2C3194 #3A40C3 #686DD2 #979AE0

Accessibility & contrast

On white

7.77
#3A40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3A40C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C3#FFFFFF#000000##FFFFFF
##3A40C31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#004CC1
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a40c3;
/* rgb */ color: rgb(58, 64, 195);
/* oklch */ color: oklch(45.6% 0.200 273.3);
Tailwind
colors: {
  custom: {
    50: '#8375d6',
    500: '#3a40c3',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c3;
$custom-light: #8375d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c3",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 237.372,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45644,
    "c": 0.19952,
    "h": 273.3
  },
  "luminance": 0.08506
}

Semantic roles & 50–950 ramp

primary
#3A40C3
secondary
#CCC98D
accent
#D74ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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