#3841A8#3841A8

#3841A8 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.163 H 273.6°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#3841A8
RGBrgb(56, 65, 168)
HSLhsl(235, 50%, 44%)
HSVhsv(235, 67%, 66%)
CMYKcmyk(66.7%, 61.3%, 0%, 34.1%)
CIE-LABlab(32.80, 30.21, -56.56)
CIE-LCHlch(32.80, 64.12, 298.10°)
OKLaboklab(43.28% 0.0102 -0.163)
OKLCHoklch(43.28% 0.163 273.6)
XYZxyz(10.5867, 7.4476, 37.9178)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841A8 #A89F38
analogous
#3879A8 #3841A8 #6738A8
triadic
#3841A8 #A83841 #41A838
tetradic
#3841A8 #A83879 #A89F38 #38A867
square
#3841A8 #A83879 #A89F38 #38A867
split-complementary
#3841A8 #A86738 #79A838
monochromatic
#191D4C #292F7A #3841A8 #565FC7 #848BD6

Accessibility & contrast

On white

8.44
#3841A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3841A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841A8
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841A8#FFFFFF#000000##FFFFFF
##3841A81.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3841a8;
/* rgb */ color: rgb(56, 65, 168);
/* oklch */ color: oklch(43.3% 0.163 273.6);
Tailwind
colors: {
  custom: {
    50: '#7c75c3',
    500: '#3841a8',
    950: '#000000',
  },
}
SCSS
$custom: #3841a8;
$custom-light: #7c75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3841a8",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 235.179,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43278,
    "c": 0.16331,
    "h": 273.6
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#3841A8
secondary
#C0BA7C
accent
#CE4EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3841A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3841A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva