#3F41A5#3F41A5

#3F41A5 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.157 H 276.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3F41A5
RGBrgb(63, 65, 165)
HSLhsl(239, 45%, 45%)
HSVhsv(239, 62%, 65%)
CMYKcmyk(61.8%, 60.6%, 0%, 35.3%)
CIE-LABlab(33.03, 30.29, -54.37)
CIE-LCHlch(33.03, 62.24, 299.13°)
OKLaboklab(43.5% 0.0186 -0.1564)
OKLCHoklch(43.5% 0.157 276.8)
XYZxyz(10.7295, 7.5531, 36.4825)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F41A5 #A5A33F
analogous
#3F74A5 #3F41A5 #703FA5
triadic
#3F41A5 #A53F41 #41A53F
tetradic
#3F41A5 #A53F74 #A5A33F #3FA570
square
#3F41A5 #A53F74 #A5A33F #3FA570
split-complementary
#3F41A5 #A5703F #74A53F
monochromatic
#1D1E4C #2E3079 #3F41A5 #5F61C2 #8C8DD3

Accessibility & contrast

On white

8.36
#3F41A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3F41A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F41A5
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F41A5#FFFFFF#000000##FFFFFF
##3F41A51.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3f41a5;
/* rgb */ color: rgb(63, 65, 165);
/* oklch */ color: oklch(43.5% 0.157 276.8);
Tailwind
colors: {
  custom: {
    50: '#7f75c0',
    500: '#3f41a5',
    950: '#000000',
  },
}
SCSS
$custom: #3f41a5;
$custom-light: #7f75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f41a5",
  "rgb": {
    "r": 63,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 238.824,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43495,
    "c": 0.15746,
    "h": 276.8
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

primary
#3F41A5
secondary
#BEBD82
accent
#D253D4
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3F41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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