#3240A5#3240A5

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

Color values

HEX#3240A5
RGBrgb(50, 64, 165)
HSLhsl(233, 53%, 42%)
HSVhsv(233, 70%, 65%)
CMYKcmyk(69.7%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.94, 28.90, -56.18)
CIE-LCHlch(31.94, 63.18, 297.22°)
OKLaboklab(42.47% 0.0045 -0.162)
OKLCHoklch(42.47% 0.162 271.6)
XYZxyz(9.9380, 7.0606, 36.4291)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240A5 #A59732
analogous
#3279A5 #3240A5 #5E32A5
triadic
#3240A5 #A53240 #40A532
tetradic
#3240A5 #A53279 #A59732 #32A55E
square
#3240A5 #A53279 #A59732 #32A55E
split-complementary
#3240A5 #A55E32 #79A532
monochromatic
#161C47 #242E76 #3240A5 #4C5BC9 #7B86D7

Accessibility & contrast

On white

8.71
#3240A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3240A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240A5
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240A5#FFFFFF#000000##FFFFFF
##3240A51.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)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3240a5;
/* rgb */ color: rgb(50, 64, 165);
/* oklch */ color: oklch(42.5% 0.162 271.6);
Tailwind
colors: {
  custom: {
    50: '#7974c1',
    500: '#3240a5',
    950: '#000000',
  },
}
SCSS
$custom: #3240a5;
$custom-light: #7974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3240a5",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 232.696,
    "s": 53.488,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42469,
    "c": 0.16209,
    "h": 271.6
  },
  "luminance": 0.07062
}

Semantic roles & 50–950 ramp

primary
#3240A5
secondary
#BFB673
accent
#CB4BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3240A5

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

Preview Lab → · Contrast checker → · Palette generator →

#3240A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva