#3240B7#3240B7

#3240B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.186 H 271.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#3240B7
RGBrgb(50, 64, 183)
HSLhsl(234, 57%, 46%)
HSVhsv(234, 73%, 72%)
CMYKcmyk(72.7%, 65%, 0%, 28.2%)
CIE-LABlab(33.48, 35.38, -64.40)
CIE-LCHlch(33.48, 73.48, 298.79°)
OKLaboklab(44.08% 0.0037 -0.1861)
OKLCHoklch(44.08% 0.186 271.1)
XYZxyz(11.6931, 7.7626, 45.6727)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240B7 #B7A932
analogous
#3282B7 #3240B7 #6632B7
triadic
#3240B7 #B73240 #40B732
tetradic
#3240B7 #B73282 #B7A932 #32B766
square
#3240B7 #B73282 #B7A932 #32B766
split-complementary
#3240B7 #B76632 #82B732
monochromatic
#181E57 #252F87 #3240B7 #5662D1 #868FDE

Accessibility & contrast

On white

8.23
#3240B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3240B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240B7
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240B7#FFFFFF#000000##FFFFFF
##3240B71.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3240b7;
/* rgb */ color: rgb(50, 64, 183);
/* oklch */ color: oklch(44.1% 0.186 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d75ce',
    500: '#3240b7',
    950: '#000000',
  },
}
SCSS
$custom: #3240b7;
$custom-light: #7d75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3240b7",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 233.684,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44078,
    "c": 0.18616,
    "h": 271.1
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#3240B7
secondary
#C7C07D
accent
#D047E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3240B7

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

Preview Lab → · Contrast checker → · Palette generator →

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