#3A40C2#3A40C2

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

Color values

HEX#3A40C2
RGBrgb(58, 64, 194)
HSLhsl(237, 54%, 49%)
HSVhsv(237, 70%, 76%)
CMYKcmyk(70.1%, 67%, 0%, 23.9%)
CIE-LABlab(34.92, 40.17, -68.49)
CIE-LCHlch(34.92, 79.40, 300.39°)
OKLaboklab(45.55% 0.0115 -0.1979)
OKLCHoklch(45.55% 0.198 273.3)
XYZxyz(13.3127, 8.4601, 51.9599)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C2 #C2BC3A
analogous
#3A84C2 #3A40C2 #783AC2
triadic
#3A40C2 #C23A40 #40C23A
tetradic
#3A40C2 #C23A84 #C2BC3A #3AC278
square
#3A40C2 #C23A84 #C2BC3A #3AC278
split-complementary
#3A40C2 #C2783A #84C23A
monochromatic
#1E2164 #2C3093 #3A40C2 #676CD2 #979AE0

Accessibility & contrast

On white

7.80
#3A40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3A40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C2#FFFFFF#000000##FFFFFF
##3A40C21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a40c2;
/* rgb */ color: rgb(58, 64, 194);
/* oklch */ color: oklch(45.6% 0.198 273.3);
Tailwind
colors: {
  custom: {
    50: '#8375d6',
    500: '#3a40c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c2;
$custom-light: #8375d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c2",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 237.353,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45551,
    "c": 0.19825,
    "h": 273.3
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#3A40C2
secondary
#CBC98D
accent
#D74ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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