#3240B2#3240B2

#3240B2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.180 H 271.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3240B2
RGBrgb(50, 64, 178)
HSLhsl(233, 56%, 45%)
HSVhsv(233, 72%, 70%)
CMYKcmyk(71.9%, 64%, 0%, 30.2%)
CIE-LABlab(33.05, 33.60, -62.15)
CIE-LCHlch(33.05, 70.65, 298.39°)
OKLaboklab(43.62% 0.004 -0.1795)
OKLCHoklch(43.62% 0.18 271.3)
XYZxyz(11.1819, 7.5581, 42.9804)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240B2 #B2A432
analogous
#3280B2 #3240B2 #6432B2
triadic
#3240B2 #B23240 #40B232
tetradic
#3240B2 #B23280 #B2A432 #32B264
square
#3240B2 #B23280 #B2A432 #32B264
split-complementary
#3240B2 #B26432 #80B232
monochromatic
#171E52 #252F82 #3240B2 #5360CF #828CDC

Accessibility & contrast

On white

8.36
#3240B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3240B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240B2
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240B2#FFFFFF#000000##FFFFFF
##3240B21.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3240b2;
/* rgb */ color: rgb(50, 64, 178);
/* oklch */ color: oklch(43.6% 0.180 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c75ca',
    500: '#3240b2',
    950: '#000000',
  },
}
SCSS
$custom: #3240b2;
$custom-light: #7c75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3240b2",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 233.438,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43622,
    "c": 0.17958,
    "h": 271.3
  },
  "luminance": 0.07559
}

Semantic roles & 50–950 ramp

primary
#3240B2
secondary
#C5BD7B
accent
#CF48DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240B2

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

Preview Lab → · Contrast checker → · Palette generator →

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