#3A41B5#3A41B5

#3A41B5 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.180 H 273.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#3A41B5
RGBrgb(58, 65, 181)
HSLhsl(237, 51%, 47%)
HSVhsv(237, 68%, 71%)
CMYKcmyk(68%, 64.1%, 0%, 29%)
CIE-LABlab(34.01, 35.06, -62.33)
CIE-LCHlch(34.01, 71.51, 299.36°)
OKLaboklab(44.54% 0.0119 -0.1798)
OKLCHoklch(44.54% 0.18 273.8)
XYZxyz(11.9729, 8.0152, 44.6232)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A41B5 #B5AE3A
analogous
#3A7FB5 #3A41B5 #703AB5
triadic
#3A41B5 #B53A41 #41B53A
tetradic
#3A41B5 #B53A7F #B5AE3A #3AB570
square
#3A41B5 #B53A7F #B5AE3A #3AB570
split-complementary
#3A41B5 #B5703A #7FB53A
monochromatic
#1C2058 #2B3087 #3A41B5 #6066CC #8E93DB

Accessibility & contrast

On white

8.07
#3A41B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3A41B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A41B5
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A41B5#FFFFFF#000000##FFFFFF
##3A41B51.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a41b5;
/* rgb */ color: rgb(58, 65, 181);
/* oklch */ color: oklch(44.5% 0.180 273.8);
Tailwind
colors: {
  custom: {
    50: '#8076cc',
    500: '#3a41b5',
    950: '#000000',
  },
}
SCSS
$custom: #3a41b5;
$custom-light: #8076cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a41b5",
  "rgb": {
    "r": 58,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 236.585,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44538,
    "c": 0.18024,
    "h": 273.8
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#3A41B5
secondary
#C6C285
accent
#D34DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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