#3240B3#3240B3

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

Color values

HEX#3240B3
RGBrgb(50, 64, 179)
HSLhsl(233, 56%, 45%)
HSVhsv(233, 72%, 70%)
CMYKcmyk(72.1%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.13, 33.96, -62.60)
CIE-LCHlch(33.13, 71.22, 298.48°)
OKLaboklab(43.71% 0.004 -0.1809)
OKLCHoklch(43.71% 0.181 271.3)
XYZxyz(11.2827, 7.5984, 43.5111)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240B3 #B3A532
analogous
#3281B3 #3240B3 #6432B3
triadic
#3240B3 #B33240 #40B332
tetradic
#3240B3 #B33281 #B3A532 #32B364
square
#3240B3 #B33281 #B3A532 #32B364
split-complementary
#3240B3 #B36432 #81B332
monochromatic
#171E53 #252F83 #3240B3 #5361CF #838DDC

Accessibility & contrast

On white

8.33
#3240B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3240B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240B3
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240B3#FFFFFF#000000##FFFFFF
##3240B31.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3240b3;
/* rgb */ color: rgb(50, 64, 179);
/* oklch */ color: oklch(43.7% 0.181 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c75cb',
    500: '#3240b3',
    950: '#000000',
  },
}
SCSS
$custom: #3240b3;
$custom-light: #7c75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3240b3",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 233.488,
    "s": 56.332,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43713,
    "c": 0.18091,
    "h": 271.3
  },
  "luminance": 0.076
}

Semantic roles & 50–950 ramp

primary
#3240B3
secondary
#C6BE7B
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240B3

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

Preview Lab → · Contrast checker → · Palette generator →

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