#3A41B6#3A41B6

#3A41B6 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.182 H 273.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3A41B6
RGBrgb(58, 65, 182)
HSLhsl(237, 52%, 47%)
HSVhsv(237, 68%, 71%)
CMYKcmyk(68.1%, 64.3%, 0%, 28.6%)
CIE-LABlab(34.10, 35.41, -62.78)
CIE-LCHlch(34.10, 72.08, 299.43°)
OKLaboklab(44.63% 0.0118 -0.1812)
OKLCHoklch(44.63% 0.182 273.7)
XYZxyz(12.0759, 8.0564, 45.1655)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A41B6 #B6AF3A
analogous
#3A7FB6 #3A41B6 #713AB6
triadic
#3A41B6 #B63A41 #41B63A
tetradic
#3A41B6 #B63A7F #B6AF3A #3AB671
square
#3A41B6 #B63A7F #B6AF3A #3AB671
split-complementary
#3A41B6 #B6713A #7FB63A
monochromatic
#1C2059 #2B3088 #3A41B6 #6167CD #8F93DB

Accessibility & contrast

On white

8.04
#3A41B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3A41B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A41B6
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A41B6#FFFFFF#000000##FFFFFF
##3A41B61.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a41b6;
/* rgb */ color: rgb(58, 65, 182);
/* oklch */ color: oklch(44.6% 0.182 273.7);
Tailwind
colors: {
  custom: {
    50: '#8076cd',
    500: '#3a41b6',
    950: '#000000',
  },
}
SCSS
$custom: #3a41b6;
$custom-light: #8076cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a41b6",
  "rgb": {
    "r": 58,
    "g": 65,
    "b": 182
  },
  "hsl": {
    "h": 236.613,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44627,
    "c": 0.18156,
    "h": 273.7
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#3A41B6
secondary
#C6C286
accent
#D34DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A41B6

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

Preview Lab → · Contrast checker → · Palette generator →

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