#3A40B8#3A40B8

#3A40B8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.185 H 273.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#3A40B8
RGBrgb(58, 64, 184)
HSLhsl(237, 52%, 47%)
HSVhsv(237, 68%, 72%)
CMYKcmyk(68.5%, 65.2%, 0%, 27.8%)
CIE-LABlab(34.04, 36.73, -64.06)
CIE-LCHlch(34.04, 73.85, 299.83°)
OKLaboklab(44.63% 0.0124 -0.1849)
OKLCHoklch(44.63% 0.185 273.8)
XYZxyz(12.2272, 8.0259, 46.2429)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B8 #B8B23A
analogous
#3A7FB8 #3A40B8 #733AB8
triadic
#3A40B8 #B83A40 #40B83A
tetradic
#3A40B8 #B83A7F #B8B23A #3AB873
square
#3A40B8 #B83A7F #B8B23A #3AB873
split-complementary
#3A40B8 #B8733A #7FB83A
monochromatic
#1D205B #2B3089 #3A40B8 #6267CD #9094DC

Accessibility & contrast

On white

8.06
#3A40B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3A40B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40B8
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B8#FFFFFF#000000##FFFFFF
##3A40B81.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a40b8;
/* rgb */ color: rgb(58, 64, 184);
/* oklch */ color: oklch(44.6% 0.185 273.8);
Tailwind
colors: {
  custom: {
    50: '#8075ce',
    500: '#3a40b8',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b8;
$custom-light: #8075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b8",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 237.143,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44634,
    "c": 0.18537,
    "h": 273.8
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#3A40B8
secondary
#C7C487
accent
#D54CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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