#3842B3#3842B3

#3842B3 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.177 H 272.9°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#3842B3
RGBrgb(56, 66, 179)
HSLhsl(235, 52%, 46%)
HSVhsv(235, 69%, 70%)
CMYKcmyk(68.7%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.96, 33.46, -61.23)
CIE-LCHlch(33.96, 69.77, 298.65°)
OKLaboklab(44.42% 0.009 -0.1767)
OKLCHoklch(44.42% 0.177 272.9)
XYZxyz(11.7131, 7.9908, 43.5642)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842B3 #B3A938
analogous
#387FB3 #3842B3 #6B38B3
triadic
#3842B3 #B33842 #42B338
tetradic
#3842B3 #B3387F #B3A938 #38B36B
square
#3842B3 #B3387F #B3A938 #38B36B
split-complementary
#3842B3 #B36B38 #7FB338
monochromatic
#1B2056 #293184 #3842B3 #5C65CC #8B91DB

Accessibility & contrast

On white

8.08
#3842B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3842B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842B3
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842B3#FFFFFF#000000##FFFFFF
##3842B31.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3842b3;
/* rgb */ color: rgb(56, 66, 179);
/* oklch */ color: oklch(44.4% 0.177 272.9);
Tailwind
colors: {
  custom: {
    50: '#7e76cb',
    500: '#3842b3',
    950: '#000000',
  },
}
SCSS
$custom: #3842b3;
$custom-light: #7e76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3842b3",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 235.122,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44415,
    "c": 0.17691,
    "h": 272.9
  },
  "luminance": 0.07992
}

Semantic roles & 50–950 ramp

primary
#3842B3
secondary
#C5C082
accent
#D04CDC
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3842B3

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

Preview Lab → · Contrast checker → · Palette generator →

#3842B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva