#3842B4#3842B4

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

Color values

HEX#3842B4
RGBrgb(56, 66, 180)
HSLhsl(235, 53%, 46%)
HSVhsv(235, 69%, 71%)
CMYKcmyk(68.9%, 63.3%, 0%, 29.4%)
CIE-LABlab(34.05, 33.81, -61.68)
CIE-LCHlch(34.05, 70.34, 298.73°)
OKLaboklab(44.5% 0.0089 -0.178)
OKLCHoklch(44.5% 0.178 272.9)
XYZxyz(11.8146, 8.0314, 44.0987)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842B4 #B4AA38
analogous
#3880B4 #3842B4 #6C38B4
triadic
#3842B4 #B43842 #42B438
tetradic
#3842B4 #B43880 #B4AA38 #38B46C
square
#3842B4 #B43880 #B4AA38 #38B46C
split-complementary
#3842B4 #B46C38 #80B438
monochromatic
#1B2057 #293185 #3842B4 #5D66CD #8B92DB

Accessibility & contrast

On white

8.06
#3842B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3842B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842B4
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842B4#FFFFFF#000000##FFFFFF
##3842B41.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3842b4;
/* rgb */ color: rgb(56, 66, 180);
/* oklch */ color: oklch(44.5% 0.178 272.9);
Tailwind
colors: {
  custom: {
    50: '#7f76cb',
    500: '#3842b4',
    950: '#000000',
  },
}
SCSS
$custom: #3842b4;
$custom-light: #7f76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3842b4",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 235.161,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44504,
    "c": 0.17823,
    "h": 272.9
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3842B4

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

Preview Lab → · Contrast checker → · Palette generator →

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