#3A40B7#3A40B7

#3A40B7 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.184 H 273.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#3A40B7
RGBrgb(58, 64, 183)
HSLhsl(237, 52%, 47%)
HSVhsv(237, 68%, 72%)
CMYKcmyk(68.3%, 65%, 0%, 28.2%)
CIE-LABlab(33.95, 36.38, -63.62)
CIE-LCHlch(33.95, 73.29, 299.77°)
OKLaboklab(44.54% 0.0125 -0.1836)
OKLCHoklch(44.54% 0.184 273.9)
XYZxyz(12.1227, 7.9841, 45.6928)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B7 #B7B13A
analogous
#3A7FB7 #3A40B7 #733AB7
triadic
#3A40B7 #B73A40 #40B73A
tetradic
#3A40B7 #B73A7F #B7B13A #3AB773
square
#3A40B7 #B73A7F #B7B13A #3AB773
split-complementary
#3A40B7 #B7733A #7FB73A
monochromatic
#1D1F5A #2B3089 #3A40B7 #6166CD #9093DC

Accessibility & contrast

On white

8.09
#3A40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3A40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40B7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B7#FFFFFF#000000##FFFFFF
##3A40B71.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a40b7;
/* rgb */ color: rgb(58, 64, 183);
/* oklch */ color: oklch(44.5% 0.184 273.9);
Tailwind
colors: {
  custom: {
    50: '#8075ce',
    500: '#3a40b7',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b7;
$custom-light: #8075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b7",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 237.12,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44543,
    "c": 0.18406,
    "h": 273.9
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#3A40B7
secondary
#C7C386
accent
#D44CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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