#3A41B8#3A41B8

#3A41B8 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.184 H 273.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#3A41B8
RGBrgb(58, 65, 184)
HSLhsl(237, 52%, 47%)
HSVhsv(237, 68%, 72%)
CMYKcmyk(68.5%, 64.7%, 0%, 27.8%)
CIE-LABlab(34.27, 36.11, -63.68)
CIE-LCHlch(34.27, 73.20, 299.55°)
OKLaboklab(44.81% 0.0117 -0.1838)
OKLCHoklch(44.81% 0.184 273.6)
XYZxyz(12.2841, 8.1397, 46.2619)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A41B8 #B8B13A
analogous
#3A80B8 #3A41B8 #723AB8
triadic
#3A41B8 #B83A41 #41B83A
tetradic
#3A41B8 #B83A80 #B8B13A #3AB872
square
#3A41B8 #B83A80 #B8B13A #3AB872
split-complementary
#3A41B8 #B8723A #80B83A
monochromatic
#1D205B #2B3189 #3A41B8 #6268CD #9095DC

Accessibility & contrast

On white

7.99
#3A41B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A41B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A41B8
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A41B8#FFFFFF#000000##FFFFFF
##3A41B81.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a41b8;
/* rgb */ color: rgb(58, 65, 184);
/* oklch */ color: oklch(44.8% 0.184 273.6);
Tailwind
colors: {
  custom: {
    50: '#8076ce',
    500: '#3a41b8',
    950: '#000000',
  },
}
SCSS
$custom: #3a41b8;
$custom-light: #8076ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a41b8",
  "rgb": {
    "r": 58,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 236.667,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44806,
    "c": 0.18419,
    "h": 273.6
  },
  "luminance": 0.08141
}

Semantic roles & 50–950 ramp

primary
#3A41B8
secondary
#C7C387
accent
#D44CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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