#3841AF#3841AF

#3841AF is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.173 H 273.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#3841AF
RGBrgb(56, 65, 175)
HSLhsl(235, 52%, 45%)
HSVhsv(235, 68%, 69%)
CMYKcmyk(68%, 62.9%, 0%, 31.4%)
CIE-LABlab(33.38, 32.68, -59.80)
CIE-LCHlch(33.38, 68.15, 298.66°)
OKLaboklab(43.88% 0.01 -0.1725)
OKLCHoklch(43.88% 0.173 273.3)
XYZxyz(11.2565, 7.7155, 41.4451)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841AF #AFA638
analogous
#387DAF #3841AF #6A38AF
triadic
#3841AF #AF3841 #41AF38
tetradic
#3841AF #AF387D #AFA638 #38AF6A
square
#3841AF #AF387D #AFA638 #38AF6A
split-complementary
#3841AF #AF6A38 #7DAF38
monochromatic
#1A1F52 #293081 #3841AF #5A62CA #888ED9

Accessibility & contrast

On white

8.26
#3841AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3841AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841AF
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841AF#FFFFFF#000000##FFFFFF
##3841AF1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3841af;
/* rgb */ color: rgb(56, 65, 175);
/* oklch */ color: oklch(43.9% 0.173 273.3);
Tailwind
colors: {
  custom: {
    50: '#7e75c8',
    500: '#3841af',
    950: '#000000',
  },
}
SCSS
$custom: #3841af;
$custom-light: #7e75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3841af",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 235.462,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43884,
    "c": 0.17279,
    "h": 273.3
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#3841AF
secondary
#C3BE80
accent
#D04DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3841AF

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

Preview Lab → · Contrast checker → · Palette generator →

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