#3240AF#3240AF

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

Color values

HEX#3240AF
RGBrgb(50, 64, 175)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 71%, 69%)
CMYKcmyk(71.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.79, 32.52, -60.79)
CIE-LCHlch(32.79, 68.94, 298.14°)
OKLaboklab(43.35% 0.0042 -0.1756)
OKLCHoklch(43.35% 0.176 271.4)
XYZxyz(10.8840, 7.4390, 41.4114)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240AF #AFA132
analogous
#327FAF #3240AF #6332AF
triadic
#3240AF #AF3240 #40AF32
tetradic
#3240AF #AF327F #AFA132 #32AF63
square
#3240AF #AF327F #AFA132 #32AF63
split-complementary
#3240AF #AF6332 #7FAF32
monochromatic
#171D50 #242F7F #3240AF #515FCD #818BDB

Accessibility & contrast

On white

8.44
#3240AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3240AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240AF
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240AF#FFFFFF#000000##FFFFFF
##3240AF1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3240af;
/* rgb */ color: rgb(50, 64, 175);
/* oklch */ color: oklch(43.4% 0.176 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b75c8',
    500: '#3240af',
    950: '#000000',
  },
}
SCSS
$custom: #3240af;
$custom-light: #7b75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3240af",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 233.28,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43351,
    "c": 0.1756,
    "h": 271.4
  },
  "luminance": 0.0744
}

Semantic roles & 50–950 ramp

primary
#3240AF
secondary
#C4BC79
accent
#CE49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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