#3240BD#3240BD

#3240BD is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.194 H 271.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#3240BD
RGBrgb(50, 64, 189)
HSLhsl(234, 58%, 47%)
HSVhsv(234, 74%, 74%)
CMYKcmyk(73.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.02, 37.52, -67.06)
CIE-LCHlch(34.02, 76.84, 299.23°)
OKLaboklab(44.63% 0.0033 -0.1939)
OKLCHoklch(44.63% 0.194 271)
XYZxyz(12.3310, 8.0177, 49.0320)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240BD #BDAF32
analogous
#3286BD #3240BD #6A32BD
triadic
#3240BD #BD3240 #40BD32
tetradic
#3240BD #BD3286 #BDAF32 #32BD6A
square
#3240BD #BD3286 #BDAF32 #32BD6A
split-complementary
#3240BD #BD6A32 #86BD32
monochromatic
#181F5C #25308D #3240BD #5965D3 #8992E0

Accessibility & contrast

On white

8.07
#3240BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3240BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240BD
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240BD#FFFFFF#000000##FFFFFF
##3240BD1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3240bd;
/* rgb */ color: rgb(50, 64, 189);
/* oklch */ color: oklch(44.6% 0.194 271.0);
Tailwind
colors: {
  custom: {
    50: '#7e75d2',
    500: '#3240bd',
    950: '#000000',
  },
}
SCSS
$custom: #3240bd;
$custom-light: #7e75d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3240bd",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 233.957,
    "s": 58.159,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44634,
    "c": 0.19393,
    "h": 271
  },
  "luminance": 0.08019
}

Semantic roles & 50–950 ramp

primary
#3240BD
secondary
#CAC381
accent
#D246E1
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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