#3B40AF#3B40AF

#3B40AF is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.173 H 274.7°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#3B40AF
RGBrgb(59, 64, 175)
HSLhsl(237, 50%, 46%)
HSVhsv(237, 66%, 69%)
CMYKcmyk(66.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.33, 33.75, -59.88)
CIE-LCHlch(33.33, 68.74, 299.41°)
OKLaboklab(43.9% 0.0142 -0.1727)
OKLCHoklch(43.9% 0.173 274.7)
XYZxyz(11.3723, 7.6907, 41.4343)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40AF #AFAA3B
analogous
#3B7AAF #3B40AF #703BAF
triadic
#3B40AF #AF3B40 #40AF3B
tetradic
#3B40AF #AF3B7A #AFAA3B #3BAF70
square
#3B40AF #AF3B7A #AFAA3B #3BAF70
split-complementary
#3B40AF #AF703B #7AAF3B
monochromatic
#1C1F53 #2C2F81 #3B40AF #5E63C9 #8C8FD8

Accessibility & contrast

On white

8.27
#3B40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3B40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40AF
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40AF#FFFFFF#000000##FFFFFF
##3B40AF1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3b40af;
/* rgb */ color: rgb(59, 64, 175);
/* oklch */ color: oklch(43.9% 0.173 274.7);
Tailwind
colors: {
  custom: {
    50: '#7f75c8',
    500: '#3b40af',
    950: '#000000',
  },
}
SCSS
$custom: #3b40af;
$custom-light: #7f75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40af",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 237.414,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43896,
    "c": 0.17324,
    "h": 274.7
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#3B40AF
secondary
#C3C083
accent
#D34FD9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3B40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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