#3240CB#3240CB

#3240CB is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.0% C 0.212 H 270.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#3240CB
RGBrgb(50, 64, 203)
HSLhsl(235, 60%, 50%)
HSVhsv(235, 75%, 80%)
CMYKcmyk(75.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(35.31, 42.41, -73.12)
CIE-LCHlch(35.31, 84.53, 300.12°)
OKLaboklab(45.97% 0.002 -0.2116)
OKLCHoklch(45.97% 0.212 270.6)
XYZxyz(13.9246, 8.6552, 57.4251)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240CB #CBBD32
analogous
#328CCB #3240CB #7132CB
triadic
#3240CB #CB3240 #40CB32
tetradic
#3240CB #CB328C #CBBD32 #32CB71
square
#3240CB #CB328C #CBBD32 #32CB71
split-complementary
#3240CB #CB7132 #8CCB32
monochromatic
#1A2169 #26319A #3240CB #626DD8 #939AE4

Accessibility & contrast

On white

7.69
#3240CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3240CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240CB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240CB#FFFFFF#000000##FFFFFF
##3240CB1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACF
Deuteranopia (green-blind)
#004CC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3240cb;
/* rgb */ color: rgb(50, 64, 203);
/* oklch */ color: oklch(46.0% 0.212 270.6);
Tailwind
colors: {
  custom: {
    50: '#8275dc',
    500: '#3240cb',
    950: '#000000',
  },
}
SCSS
$custom: #3240cb;
$custom-light: #8275dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3240cb",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 234.51,
    "s": 60.474,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45966,
    "c": 0.21163,
    "h": 270.6
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#3240CB
secondary
#CFC989
accent
#D544E4
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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