#3A40C0#3A40C0

#3A40C0 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.196 H 273.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3A40C0
RGBrgb(58, 64, 192)
HSLhsl(237, 54%, 49%)
HSVhsv(237, 70%, 75%)
CMYKcmyk(69.8%, 66.7%, 0%, 24.7%)
CIE-LABlab(34.74, 39.48, -67.61)
CIE-LCHlch(34.74, 78.30, 300.28°)
OKLaboklab(45.37% 0.0117 -0.1953)
OKLCHoklch(45.37% 0.196 273.4)
XYZxyz(13.0896, 8.3708, 50.7849)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C0 #C0BA3A
analogous
#3A83C0 #3A40C0 #773AC0
triadic
#3A40C0 #C03A40 #40C03A
tetradic
#3A40C0 #C03A83 #C0BA3A #3AC077
square
#3A40C0 #C03A83 #C0BA3A #3AC077
split-complementary
#3A40C0 #C0773A #83C03A
monochromatic
#1E2162 #2C3091 #3A40C0 #666BD1 #9599DF

Accessibility & contrast

On white

7.85
#3A40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3A40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C0
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C0#FFFFFF#000000##FFFFFF
##3A40C01.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a40c0;
/* rgb */ color: rgb(58, 64, 192);
/* oklch */ color: oklch(45.4% 0.196 273.4);
Tailwind
colors: {
  custom: {
    50: '#8275d4',
    500: '#3a40c0',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c0;
$custom-light: #8275d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c0",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 237.313,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45365,
    "c": 0.1957,
    "h": 273.4
  },
  "luminance": 0.08372
}

Semantic roles & 50–950 ramp

primary
#3A40C0
secondary
#CAC88B
accent
#D64BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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