#3240AD#3240AD

#3240AD is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.173 H 271.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#3240AD
RGBrgb(50, 64, 173)
HSLhsl(233, 55%, 44%)
HSVhsv(233, 71%, 68%)
CMYKcmyk(71.1%, 63%, 0%, 32.2%)
CIE-LABlab(32.62, 31.80, -59.88)
CIE-LCHlch(32.62, 67.80, 297.97°)
OKLaboklab(43.17% 0.0042 -0.1729)
OKLCHoklch(43.17% 0.173 271.4)
XYZxyz(10.6891, 7.3610, 40.3845)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240AD #AD9F32
analogous
#327DAD #3240AD #6132AD
triadic
#3240AD #AD3240 #40AD32
tetradic
#3240AD #AD327D #AD9F32 #32AD61
square
#3240AD #AD327D #AD9F32 #32AD61
split-complementary
#3240AD #AD6132 #7DAD32
monochromatic
#171D4E #242E7E #3240AD #505ECC #7F8ADA

Accessibility & contrast

On white

8.49
#3240AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3240AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240AD
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240AD#FFFFFF#000000##FFFFFF
##3240AD1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3240ad;
/* rgb */ color: rgb(50, 64, 173);
/* oklch */ color: oklch(43.2% 0.173 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b74c6',
    500: '#3240ad',
    950: '#000000',
  },
}
SCSS
$custom: #3240ad;
$custom-light: #7b74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3240ad",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 233.171,
    "s": 55.157,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43173,
    "c": 0.17293,
    "h": 271.4
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#3240AD
secondary
#C3BB78
accent
#CE49DE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240AD

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

Preview Lab → · Contrast checker → · Palette generator →

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