#3340E2#3340E2

#3340E2 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.239 H 270.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#3340E2
RGBrgb(51, 64, 226)
HSLhsl(236, 75%, 54%)
HSVhsv(236, 77%, 89%)
CMYKcmyk(77.4%, 71.7%, 0%, 11.4%)
CIE-LABlab(37.59, 50.29, -82.61)
CIE-LCHlch(37.59, 96.71, 301.33°)
OKLaboklab(48.29% 0.0003 -0.2392)
OKLCHoklch(48.29% 0.239 270.1)
XYZxyz(16.9214, 9.8597, 72.9481)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340E2 #E2D533
analogous
#3398E2 #3340E2 #7E33E2
triadic
#3340E2 #E23340 #40E233
tetradic
#3340E2 #E23398 #E2D533 #33E27E
square
#3340E2 #E23398 #E2D533 #33E27E
split-complementary
#3340E2 #E27E33 #98E233
monochromatic
#131C87 #1B27BD #3340E2 #6972EA #9EA4F1

Accessibility & contrast

On white

7.06
#3340E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3340E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340E2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340E2#FFFFFF#000000##FFFFFF
##3340E21.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E7
Deuteranopia (green-blind)
#0050DF
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3340e2;
/* rgb */ color: rgb(51, 64, 226);
/* oklch */ color: oklch(48.3% 0.239 270.1);
Tailwind
colors: {
  custom: {
    50: '#8776ed',
    500: '#3340e2',
    950: '#000000',
  },
}
SCSS
$custom: #3340e2;
$custom-light: #8776ed;
$custom-dark: #000000;
JSON
{
  "hex": "#3340e2",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 235.543,
    "s": 75.107,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.23925,
    "h": 270.1
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#3340E2
secondary
#DED893
accent
#E436F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3340E2

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

Preview Lab → · Contrast checker → · Palette generator →

#3340E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva