#3840AF#3840AF

#3840AF is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.174 H 273.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#3840AF
RGBrgb(56, 64, 175)
HSLhsl(236, 52%, 45%)
HSVhsv(236, 68%, 69%)
CMYKcmyk(68%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.14, 33.32, -60.20)
CIE-LCHlch(33.14, 68.81, 298.96°)
OKLaboklab(43.71% 0.0107 -0.1737)
OKLCHoklch(43.71% 0.174 273.5)
XYZxyz(11.1996, 7.6017, 41.4262)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840AF #AFA738
analogous
#387CAF #3840AF #6B38AF
triadic
#3840AF #AF3840 #40AF38
tetradic
#3840AF #AF387C #AFA738 #38AF6B
square
#3840AF #AF387C #AFA738 #38AF6B
split-complementary
#3840AF #AF6B38 #7CAF38
monochromatic
#1A1E52 #292F81 #3840AF #5A62CA #888ED9

Accessibility & contrast

On white

8.33
#3840AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3840AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840AF
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840AF#FFFFFF#000000##FFFFFF
##3840AF1.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)
#0053B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3840af;
/* rgb */ color: rgb(56, 64, 175);
/* oklch */ color: oklch(43.7% 0.174 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e75c8',
    500: '#3840af',
    950: '#000000',
  },
}
SCSS
$custom: #3840af;
$custom-light: #7e75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3840af",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 235.966,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43705,
    "c": 0.174,
    "h": 273.5
  },
  "luminance": 0.07603
}

Semantic roles & 50–950 ramp

primary
#3840AF
secondary
#C3BF80
accent
#D14DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3840AF

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

Preview Lab → · Contrast checker → · Palette generator →

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