#3240A4#3240A4

#3240A4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.161 H 271.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#3240A4
RGBrgb(50, 64, 164)
HSLhsl(233, 53%, 42%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(69.5%, 61%, 0%, 35.7%)
CIE-LABlab(31.86, 28.53, -55.71)
CIE-LCHlch(31.86, 62.59, 297.12°)
OKLaboklab(42.38% 0.0045 -0.1607)
OKLCHoklch(42.38% 0.161 271.6)
XYZxyz(9.8474, 7.0243, 35.9516)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240A4 #A49632
analogous
#3279A4 #3240A4 #5D32A4
triadic
#3240A4 #A43240 #40A432
tetradic
#3240A4 #A43279 #A49632 #32A45D
square
#3240A4 #A43279 #A49632 #32A45D
split-complementary
#3240A4 #A45D32 #79A432
monochromatic
#151B46 #242E75 #3240A4 #4B5AC8 #7A85D6

Accessibility & contrast

On white

8.73
#3240A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3240A4
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240A4#FFFFFF#000000##FFFFFF
##3240A41.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3240a4;
/* rgb */ color: rgb(50, 64, 164);
/* oklch */ color: oklch(42.4% 0.161 271.6);
Tailwind
colors: {
  custom: {
    50: '#7974c0',
    500: '#3240a4',
    950: '#000000',
  },
}
SCSS
$custom: #3240a4;
$custom-light: #7974c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3240a4",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 232.632,
    "s": 53.271,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42383,
    "c": 0.16072,
    "h": 271.6
  },
  "luminance": 0.07025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3240A4

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

Preview Lab → · Contrast checker → · Palette generator →

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