#3841AC#3841AC

#3841AC is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.169 H 273.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#3841AC
RGBrgb(56, 65, 172)
HSLhsl(235, 51%, 45%)
HSVhsv(235, 67%, 67%)
CMYKcmyk(67.4%, 62.2%, 0%, 32.5%)
CIE-LABlab(33.13, 31.62, -58.42)
CIE-LCHlch(33.13, 66.43, 298.43°)
OKLaboklab(43.62% 0.0101 -0.1684)
OKLCHoklch(43.62% 0.169 273.4)
XYZxyz(10.9651, 7.5989, 39.9106)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841AC #ACA338
analogous
#387BAC #3841AC #6938AC
triadic
#3841AC #AC3841 #41AC38
tetradic
#3841AC #AC387B #ACA338 #38AC69
square
#3841AC #AC387B #ACA338 #38AC69
split-complementary
#3841AC #AC6938 #7BAC38
monochromatic
#1A1E50 #29307E #3841AC #5861C9 #878DD8

Accessibility & contrast

On white

8.33
#3841AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3841AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841AC
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841AC#FFFFFF#000000##FFFFFF
##3841AC1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3841ac;
/* rgb */ color: rgb(56, 65, 172);
/* oklch */ color: oklch(43.6% 0.169 273.4);
Tailwind
colors: {
  custom: {
    50: '#7d75c6',
    500: '#3841ac',
    950: '#000000',
  },
}
SCSS
$custom: #3841ac;
$custom-light: #7d75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3841ac",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 235.345,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43623,
    "c": 0.16874,
    "h": 273.4
  },
  "luminance": 0.076
}

Semantic roles & 50–950 ramp

primary
#3841AC
secondary
#C2BD7E
accent
#CF4DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3841AC

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

Preview Lab → · Contrast checker → · Palette generator →

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