#3A40B9#3A40B9

#3A40B9 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.187 H 273.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#3A40B9
RGBrgb(58, 64, 185)
HSLhsl(237, 52%, 48%)
HSVhsv(237, 69%, 73%)
CMYKcmyk(68.6%, 65.4%, 0%, 27.5%)
CIE-LABlab(34.12, 37.08, -64.51)
CIE-LCHlch(34.12, 74.41, 299.89°)
OKLaboklab(44.72% 0.0123 -0.1863)
OKLCHoklch(44.72% 0.187 273.8)
XYZxyz(12.3324, 8.0680, 46.7969)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B9 #B9B33A
analogous
#3A80B9 #3A40B9 #733AB9
triadic
#3A40B9 #B93A40 #40B93A
tetradic
#3A40B9 #B93A80 #B9B33A #3AB973
square
#3A40B9 #B93A80 #B9B33A #3AB973
split-complementary
#3A40B9 #B9733A #80B93A
monochromatic
#1D205C #2B308A #3A40B9 #6267CE #9194DC

Accessibility & contrast

On white

8.03
#3A40B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A40B9
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B9#FFFFFF#000000##FFFFFF
##3A40B91.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a40b9;
/* rgb */ color: rgb(58, 64, 185);
/* oklch */ color: oklch(44.7% 0.187 273.8);
Tailwind
colors: {
  custom: {
    50: '#8175cf',
    500: '#3a40b9',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b9;
$custom-light: #8175cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b9",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 237.165,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44724,
    "c": 0.18667,
    "h": 273.8
  },
  "luminance": 0.08069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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