#3240A1#3240A1

#3240A1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.157 H 271.6°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#3240A1
RGBrgb(50, 64, 161)
HSLhsl(232, 53%, 41%)
HSVhsv(232, 69%, 63%)
CMYKcmyk(68.9%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.62, 27.44, -54.30)
CIE-LCHlch(31.62, 60.84, 296.81°)
OKLaboklab(42.13% 0.0045 -0.1565)
OKLCHoklch(42.13% 0.157 271.6)
XYZxyz(9.5796, 6.9172, 34.5416)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240A1 #A19332
analogous
#3278A1 #3240A1 #5C32A1
triadic
#3240A1 #A13240 #40A132
tetradic
#3240A1 #A13278 #A19332 #32A15C
square
#3240A1 #A13278 #A19332 #32A15C
split-complementary
#3240A1 #A15C32 #78A132
monochromatic
#151B44 #232D72 #3240A1 #4A59C7 #7884D5

Accessibility & contrast

On white

8.81
#3240A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3240A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240A1
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240A1#FFFFFF#000000##FFFFFF
##3240A11.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3240a1;
/* rgb */ color: rgb(50, 64, 161);
/* oklch */ color: oklch(42.1% 0.157 271.6);
Tailwind
colors: {
  custom: {
    50: '#7874be',
    500: '#3240a1',
    950: '#000000',
  },
}
SCSS
$custom: #3240a1;
$custom-light: #7874be;
$custom-dark: #000000;
JSON
{
  "hex": "#3240a1",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 232.432,
    "s": 52.607,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.15657,
    "h": 271.6
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#3240A1
secondary
#BEB471
accent
#CA4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3240A1

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

Preview Lab → · Contrast checker → · Palette generator →

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