#3F40A2#3F40A2

#3F40A2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.155 H 277.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#3F40A2
RGBrgb(63, 64, 162)
HSLhsl(239, 44%, 44%)
HSVhsv(239, 61%, 64%)
CMYKcmyk(61.1%, 60.5%, 0%, 36.5%)
CIE-LABlab(32.55, 29.90, -53.35)
CIE-LCHlch(32.55, 61.16, 299.27°)
OKLaboklab(43.06% 0.0196 -0.1534)
OKLCHoklch(43.06% 0.155 277.3)
XYZxyz(10.4028, 7.3314, 35.0423)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F40A2 #A2A13F
analogous
#3F72A2 #3F40A2 #703FA2
triadic
#3F40A2 #A23F40 #40A23F
tetradic
#3F40A2 #A23F72 #A2A13F #3FA270
square
#3F40A2 #A23F72 #A2A13F #3FA270
split-complementary
#3F40A2 #A2703F #72A23F
monochromatic
#1D1D4A #2E2F76 #3F40A2 #5E5FC0 #8A8BD1

Accessibility & contrast

On white

8.51
#3F40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3F40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F40A2
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F40A2#FFFFFF#000000##FFFFFF
##3F40A21.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3f40a2;
/* rgb */ color: rgb(63, 64, 162);
/* oklch */ color: oklch(43.1% 0.155 277.3);
Tailwind
colors: {
  custom: {
    50: '#7e75be',
    500: '#3f40a2',
    950: '#000000',
  },
}
SCSS
$custom: #3f40a2;
$custom-light: #7e75be;
$custom-dark: #000000;
JSON
{
  "hex": "#3f40a2",
  "rgb": {
    "r": 63,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 239.394,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43063,
    "c": 0.15461,
    "h": 277.3
  },
  "luminance": 0.07332
}

Semantic roles & 50–950 ramp

primary
#3F40A2
secondary
#BCBC81
accent
#D254D4
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3F40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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