#3240B5#3240B5

#3240B5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.184 H 271.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#3240B5
RGBrgb(50, 64, 181)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 72%, 71%)
CMYKcmyk(72.4%, 64.6%, 0%, 29%)
CIE-LABlab(33.31, 34.67, -63.50)
CIE-LCHlch(33.31, 72.35, 298.63°)
OKLaboklab(43.9% 0.0038 -0.1835)
OKLCHoklch(43.9% 0.184 271.2)
XYZxyz(11.4864, 7.6799, 44.5841)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240B5 #B5A732
analogous
#3281B5 #3240B5 #6632B5
triadic
#3240B5 #B53240 #40B532
tetradic
#3240B5 #B53281 #B5A732 #32B566
square
#3240B5 #B53281 #B5A732 #32B566
split-complementary
#3240B5 #B56632 #81B532
monochromatic
#181E55 #252F85 #3240B5 #5462D0 #848EDD

Accessibility & contrast

On white

8.28
#3240B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3240B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240B5
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240B5#FFFFFF#000000##FFFFFF
##3240B51.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3240b5;
/* rgb */ color: rgb(50, 64, 181);
/* oklch */ color: oklch(43.9% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#7d75cc',
    500: '#3240b5',
    950: '#000000',
  },
}
SCSS
$custom: #3240b5;
$custom-light: #7d75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3240b5",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 233.588,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43895,
    "c": 0.18354,
    "h": 271.2
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#3240B5
secondary
#C7BF7C
accent
#D048E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240B5

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

Preview Lab → · Contrast checker → · Palette generator →

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