#3340C5#3340C5

#3340C5 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.4% C 0.204 H 271.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#3340C5
RGBrgb(51, 64, 197)
HSLhsl(235, 59%, 49%)
HSVhsv(235, 74%, 77%)
CMYKcmyk(74.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(34.80, 40.43, -70.46)
CIE-LCHlch(34.80, 81.23, 299.85°)
OKLaboklab(45.44% 0.0036 -0.2038)
OKLCHoklch(45.44% 0.204 271)
XYZxyz(13.2733, 8.4004, 53.7344)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340C5 #C5B833
analogous
#3389C5 #3340C5 #6F33C5
triadic
#3340C5 #C53340 #40C533
tetradic
#3340C5 #C53389 #C5B833 #33C56F
square
#3340C5 #C53389 #C5B833 #33C56F
split-complementary
#3340C5 #C56F33 #89C533
monochromatic
#1A2064 #263094 #3340C5 #5F6AD6 #9097E2

Accessibility & contrast

On white

7.83
#3340C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3340C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340C5
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340C5#FFFFFF#000000##FFFFFF
##3340C51.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3340c5;
/* rgb */ color: rgb(51, 64, 197);
/* oklch */ color: oklch(45.4% 0.204 271.0);
Tailwind
colors: {
  custom: {
    50: '#8175d8',
    500: '#3340c5',
    950: '#000000',
  },
}
SCSS
$custom: #3340c5;
$custom-light: #8175d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3340c5",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 234.658,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.20386,
    "h": 271
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#3340C5
secondary
#CDC787
accent
#D446E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3340C5

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

Preview Lab → · Contrast checker → · Palette generator →

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