#3A40BB#3A40BB

#3A40BB is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.189 H 273.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#3A40BB
RGBrgb(58, 64, 187)
HSLhsl(237, 53%, 48%)
HSVhsv(237, 69%, 73%)
CMYKcmyk(69%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.30, 37.77, -65.40)
CIE-LCHlch(34.30, 75.52, 300.00°)
OKLaboklab(44.91% 0.0122 -0.1889)
OKLCHoklch(44.91% 0.189 273.7)
XYZxyz(12.5450, 8.1530, 47.9166)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40BB #BBB53A
analogous
#3A81BB #3A40BB #743ABB
triadic
#3A40BB #BB3A40 #40BB3A
tetradic
#3A40BB #BB3A81 #BBB53A #3ABB74
square
#3A40BB #BB3A81 #BBB53A #3ABB74
split-complementary
#3A40BB #BB743A #81BB3A
monochromatic
#1D205E #2C308C #3A40BB #6368CF #9296DD

Accessibility & contrast

On white

7.98
#3A40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40BB
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40BB#FFFFFF#000000##FFFFFF
##3A40BB1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a40bb;
/* rgb */ color: rgb(58, 64, 187);
/* oklch */ color: oklch(44.9% 0.189 273.7);
Tailwind
colors: {
  custom: {
    50: '#8175d0',
    500: '#3a40bb',
    950: '#000000',
  },
}
SCSS
$custom: #3a40bb;
$custom-light: #8175d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40bb",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 237.209,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44906,
    "c": 0.18927,
    "h": 273.7
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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