#3240B4#3240B4

#3240B4 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.182 H 271.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#3240B4
RGBrgb(50, 64, 180)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(72.2%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.22, 34.31, -63.05)
CIE-LCHlch(33.22, 71.79, 298.56°)
OKLaboklab(43.8% 0.0039 -0.1822)
OKLCHoklch(43.8% 0.182 271.2)
XYZxyz(11.3842, 7.6390, 44.0457)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240B4 #B4A632
analogous
#3281B4 #3240B4 #6532B4
triadic
#3240B4 #B43240 #40B432
tetradic
#3240B4 #B43281 #B4A632 #32B465
square
#3240B4 #B43281 #B4A632 #32B465
split-complementary
#3240B4 #B46532 #81B432
monochromatic
#171E54 #252F84 #3240B4 #5461CF #848DDD

Accessibility & contrast

On white

8.31
#3240B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3240B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240B4
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240B4#FFFFFF#000000##FFFFFF
##3240B41.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3240b4;
/* rgb */ color: rgb(50, 64, 180);
/* oklch */ color: oklch(43.8% 0.182 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c75cb',
    500: '#3240b4',
    950: '#000000',
  },
}
SCSS
$custom: #3240b4;
$custom-light: #7c75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3240b4",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 233.538,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43804,
    "c": 0.18222,
    "h": 271.2
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#3240B4
secondary
#C6BE7C
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240B4

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

Preview Lab → · Contrast checker → · Palette generator →

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