#3240C1#3240C1

#3240C1 is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.199 H 270.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#3240C1
RGBrgb(50, 64, 193)
HSLhsl(234, 59%, 48%)
HSVhsv(234, 74%, 76%)
CMYKcmyk(74.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(34.38, 38.93, -68.81)
CIE-LCHlch(34.38, 79.06, 299.50°)
OKLaboklab(45.01% 0.003 -0.199)
OKLCHoklch(45.01% 0.199 270.9)
XYZxyz(12.7712, 8.1938, 51.3502)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240C1 #C1B332
analogous
#3287C1 #3240C1 #6C32C1
triadic
#3240C1 #C13240 #40C132
tetradic
#3240C1 #C13287 #C1B332 #32C16C
square
#3240C1 #C13287 #C1B332 #32C16C
split-complementary
#3240C1 #C16C32 #87C132
monochromatic
#192060 #253090 #3240C1 #5C67D5 #8C94E1

Accessibility & contrast

On white

7.96
#3240C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3240C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240C1
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240C1#FFFFFF#000000##FFFFFF
##3240C11.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3240c1;
/* rgb */ color: rgb(50, 64, 193);
/* oklch */ color: oklch(45.0% 0.199 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f75d5',
    500: '#3240c1',
    950: '#000000',
  },
}
SCSS
$custom: #3240c1;
$custom-light: #7f75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3240c1",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 234.126,
    "s": 58.848,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4501,
    "c": 0.19905,
    "h": 270.9
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#3240C1
secondary
#CBC483
accent
#D346E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3240C1

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

Preview Lab → · Contrast checker → · Palette generator →

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