#3640A2#3640A2

#3640A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.157 H 273.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#3640A2
RGBrgb(54, 64, 162)
HSLhsl(234, 50%, 42%)
HSVhsv(234, 67%, 64%)
CMYKcmyk(66.7%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.94, 28.41, -54.37)
CIE-LCHlch(31.94, 61.35, 297.59°)
OKLaboklab(42.45% 0.0089 -0.1566)
OKLCHoklch(42.45% 0.157 273.3)
XYZxyz(9.8741, 7.0588, 35.0175)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3640A2 #A29836
analogous
#3676A2 #3640A2 #6236A2
triadic
#3640A2 #A23640 #40A236
tetradic
#3640A2 #A23676 #A29836 #36A262
square
#3640A2 #A23676 #A29836 #36A262
split-complementary
#3640A2 #A26236 #76A236
monochromatic
#171C46 #272E74 #3640A2 #505BC5 #7E86D4

Accessibility & contrast

On white

8.71
#3640A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3640A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3640A2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3640A2#FFFFFF#000000##FFFFFF
##3640A21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3640a2;
/* rgb */ color: rgb(54, 64, 162);
/* oklch */ color: oklch(42.5% 0.157 273.3);
Tailwind
colors: {
  custom: {
    50: '#7a74be',
    500: '#3640a2',
    950: '#000000',
  },
}
SCSS
$custom: #3640a2;
$custom-light: #7a74be;
$custom-dark: #000000;
JSON
{
  "hex": "#3640a2",
  "rgb": {
    "r": 54,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 234.444,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.15686,
    "h": 273.3
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#3640A2
secondary
#BDB777
accent
#CD4EDA
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3640A2

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

Preview Lab → · Contrast checker → · Palette generator →

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