#3840A2#3840A2

#3840A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.156 H 274.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3840A2
RGBrgb(56, 64, 162)
HSLhsl(235, 49%, 43%)
HSVhsv(235, 65%, 64%)
CMYKcmyk(65.4%, 60.5%, 0%, 36.5%)
CIE-LABlab(32.07, 28.72, -54.16)
CIE-LCHlch(32.07, 61.30, 297.94°)
OKLaboklab(42.58% 0.0112 -0.1559)
OKLCHoklch(42.58% 0.156 274.1)
XYZxyz(9.9837, 7.1153, 35.0227)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840A2 #A29A38
analogous
#3875A2 #3840A2 #6538A2
triadic
#3840A2 #A23840 #40A238
tetradic
#3840A2 #A23875 #A29A38 #38A265
square
#3840A2 #A23875 #A29A38 #38A265
split-complementary
#3840A2 #A26538 #75A238
monochromatic
#191C47 #282E75 #3840A2 #535CC4 #8187D3

Accessibility & contrast

On white

8.67
#3840A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3840A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840A2
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840A2#FFFFFF#000000##FFFFFF
##3840A21.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3840a2;
/* rgb */ color: rgb(56, 64, 162);
/* oklch */ color: oklch(42.6% 0.156 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b74be',
    500: '#3840a2',
    950: '#000000',
  },
}
SCSS
$custom: #3840a2;
$custom-light: #7b74be;
$custom-dark: #000000;
JSON
{
  "hex": "#3840a2",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 235.472,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42582,
    "c": 0.15633,
    "h": 274.1
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#3840A2
secondary
#BDB879
accent
#CE50D8
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3840A2

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

Preview Lab → · Contrast checker → · Palette generator →

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