#3A40BE#3A40BE

#3A40BE is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.193 H 273.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#3A40BE
RGBrgb(58, 64, 190)
HSLhsl(237, 53%, 49%)
HSVhsv(237, 69%, 75%)
CMYKcmyk(69.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.56, 38.80, -66.73)
CIE-LCHlch(34.56, 77.19, 300.17°)
OKLaboklab(45.18% 0.0119 -0.1928)
OKLCHoklch(45.18% 0.193 273.5)
XYZxyz(12.8695, 8.2828, 49.6257)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40BE #BEB83A
analogous
#3A82BE #3A40BE #763ABE
triadic
#3A40BE #BE3A40 #40BE3A
tetradic
#3A40BE #BE3A82 #BEB83A #3ABE76
square
#3A40BE #BE3A82 #BEB83A #3ABE76
split-complementary
#3A40BE #BE763A #82BE3A
monochromatic
#1D2060 #2C308F #3A40BE #656AD0 #9497DE

Accessibility & contrast

On white

7.90
#3A40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3A40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40BE
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40BE#FFFFFF#000000##FFFFFF
##3A40BE1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a40be;
/* rgb */ color: rgb(58, 64, 190);
/* oklch */ color: oklch(45.2% 0.193 273.5);
Tailwind
colors: {
  custom: {
    50: '#8275d3',
    500: '#3a40be',
    950: '#000000',
  },
}
SCSS
$custom: #3a40be;
$custom-light: #8275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40be",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 237.273,
    "s": 53.226,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45181,
    "c": 0.19314,
    "h": 273.5
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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