#3240B8#3240B8

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

Color values

HEX#3240B8
RGBrgb(50, 64, 184)
HSLhsl(234, 57%, 46%)
HSVhsv(234, 73%, 72%)
CMYKcmyk(72.8%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.57, 35.74, -64.84)
CIE-LCHlch(33.57, 74.04, 298.86°)
OKLaboklab(44.17% 0.0037 -0.1874)
OKLCHoklch(44.17% 0.187 271.1)
XYZxyz(11.7976, 7.8044, 46.2228)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240B8 #B8AA32
analogous
#3283B8 #3240B8 #6732B8
triadic
#3240B8 #B83240 #40B832
tetradic
#3240B8 #B83283 #B8AA32 #32B867
square
#3240B8 #B83283 #B8AA32 #32B867
split-complementary
#3240B8 #B86732 #83B832
monochromatic
#181F58 #252F88 #3240B8 #5663D1 #868FDE

Accessibility & contrast

On white

8.20
#3240B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3240B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240B8
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240B8#FFFFFF#000000##FFFFFF
##3240B81.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3240b8;
/* rgb */ color: rgb(50, 64, 184);
/* oklch */ color: oklch(44.2% 0.187 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d75ce',
    500: '#3240b8',
    950: '#000000',
  },
}
SCSS
$custom: #3240b8;
$custom-light: #7d75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3240b8",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 233.731,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4417,
    "c": 0.18747,
    "h": 271.1
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#3240B8
secondary
#C8C07E
accent
#D147E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3240B8

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

Preview Lab → · Contrast checker → · Palette generator →

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