#3240A2#3240A2

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

Color values

HEX#3240A2
RGBrgb(50, 64, 162)
HSLhsl(233, 53%, 42%)
HSVhsv(233, 69%, 64%)
CMYKcmyk(69.1%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.70, 27.80, -54.77)
CIE-LCHlch(31.70, 61.43, 296.91°)
OKLaboklab(42.21% 0.0045 -0.1579)
OKLCHoklch(42.21% 0.158 271.6)
XYZxyz(9.6682, 6.9526, 35.0079)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240A2 #A29432
analogous
#3278A2 #3240A2 #5C32A2
triadic
#3240A2 #A23240 #40A232
tetradic
#3240A2 #A23278 #A29432 #32A25C
square
#3240A2 #A23278 #A29432 #32A25C
split-complementary
#3240A2 #A25C32 #78A232
monochromatic
#151B44 #242E73 #3240A2 #4A5AC7 #7984D6

Accessibility & contrast

On white

8.78
#3240A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3240A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240A2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240A2#FFFFFF#000000##FFFFFF
##3240A21.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3240a2;
/* rgb */ color: rgb(50, 64, 162);
/* oklch */ color: oklch(42.2% 0.158 271.6);
Tailwind
colors: {
  custom: {
    50: '#7874be',
    500: '#3240a2',
    950: '#000000',
  },
}
SCSS
$custom: #3240a2;
$custom-light: #7874be;
$custom-dark: #000000;
JSON
{
  "hex": "#3240a2",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 232.5,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.15796,
    "h": 271.6
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3240A2

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

Preview Lab → · Contrast checker → · Palette generator →

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