#3A40BA#3A40BA

#3A40BA is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.188 H 273.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#3A40BA
RGBrgb(58, 64, 186)
HSLhsl(237, 52%, 48%)
HSVhsv(237, 69%, 73%)
CMYKcmyk(68.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(34.21, 37.42, -64.96)
CIE-LCHlch(34.21, 74.97, 299.95°)
OKLaboklab(44.82% 0.0122 -0.1876)
OKLCHoklch(44.82% 0.188 273.7)
XYZxyz(12.4383, 8.1103, 47.3548)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40BA #BAB43A
analogous
#3A80BA #3A40BA #743ABA
triadic
#3A40BA #BA3A40 #40BA3A
tetradic
#3A40BA #BA3A80 #BAB43A #3ABA74
square
#3A40BA #BA3A80 #BAB43A #3ABA74
split-complementary
#3A40BA #BA743A #80BA3A
monochromatic
#1D205D #2B308B #3A40BA #6368CE #9295DD

Accessibility & contrast

On white

8.01
#3A40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3A40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40BA
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40BA#FFFFFF#000000##FFFFFF
##3A40BA1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a40ba;
/* rgb */ color: rgb(58, 64, 186);
/* oklch */ color: oklch(44.8% 0.188 273.7);
Tailwind
colors: {
  custom: {
    50: '#8175d0',
    500: '#3a40ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a40ba;
$custom-light: #8175d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40ba",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 237.188,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44815,
    "c": 0.18797,
    "h": 273.7
  },
  "luminance": 0.08112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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