#3240BF#3240BF

#3240BF is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.196 H 270.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#3240BF
RGBrgb(50, 64, 191)
HSLhsl(234, 59%, 47%)
HSVhsv(234, 74%, 75%)
CMYKcmyk(73.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.20, 38.22, -67.94)
CIE-LCHlch(34.20, 77.95, 299.36°)
OKLaboklab(44.82% 0.0031 -0.1965)
OKLCHoklch(44.82% 0.196 270.9)
XYZxyz(12.5496, 8.1052, 50.1832)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240BF #BFB132
analogous
#3286BF #3240BF #6B32BF
triadic
#3240BF #BF3240 #40BF32
tetradic
#3240BF #BF3286 #BFB132 #32BF6B
square
#3240BF #BF3286 #BFB132 #32BF6B
split-complementary
#3240BF #BF6B32 #86BF32
monochromatic
#191F5E #25308E #3240BF #5A66D4 #8B93E1

Accessibility & contrast

On white

8.01
#3240BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3240BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240BF
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240BF#FFFFFF#000000##FFFFFF
##3240BF1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#004ABD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3240bf;
/* rgb */ color: rgb(50, 64, 191);
/* oklch */ color: oklch(44.8% 0.196 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f75d3',
    500: '#3240bf',
    950: '#000000',
  },
}
SCSS
$custom: #3240bf;
$custom-light: #7f75d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3240bf",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 234.043,
    "s": 58.506,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44822,
    "c": 0.19649,
    "h": 270.9
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#3240BF
secondary
#CBC382
accent
#D246E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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