#3340C2#3340C2

#3340C2 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.2% C 0.200 H 271.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3340C2
RGBrgb(51, 64, 194)
HSLhsl(235, 58%, 48%)
HSVhsv(235, 74%, 76%)
CMYKcmyk(73.7%, 67%, 0%, 23.9%)
CIE-LABlab(34.53, 39.38, -69.16)
CIE-LCHlch(34.53, 79.58, 299.66°)
OKLaboklab(45.16% 0.0039 -0.2)
OKLCHoklch(45.16% 0.2 271.1)
XYZxyz(12.9329, 8.2643, 51.9421)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340C2 #C2B533
analogous
#3388C2 #3340C2 #6D33C2
triadic
#3340C2 #C23340 #40C233
tetradic
#3340C2 #C23388 #C2B533 #33C26D
square
#3340C2 #C23388 #C2B533 #33C26D
split-complementary
#3340C2 #C26D33 #88C233
monochromatic
#1A2061 #263092 #3340C2 #5E68D5 #8E96E1

Accessibility & contrast

On white

7.91
#3340C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3340C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340C2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340C2#FFFFFF#000000##FFFFFF
##3340C21.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3340c2;
/* rgb */ color: rgb(51, 64, 194);
/* oklch */ color: oklch(45.2% 0.200 271.1);
Tailwind
colors: {
  custom: {
    50: '#8075d6',
    500: '#3340c2',
    950: '#000000',
  },
}
SCSS
$custom: #3340c2;
$custom-light: #8075d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3340c2",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 234.545,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45157,
    "c": 0.20006,
    "h": 271.1
  },
  "luminance": 0.08266
}

Semantic roles & 50–950 ramp

primary
#3340C2
secondary
#CCC585
accent
#D346E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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