#3340CC#3340CC

#3340CC is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.1% C 0.213 H 270.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#3340CC
RGBrgb(51, 64, 204)
HSLhsl(235, 60%, 50%)
HSVhsv(235, 75%, 80%)
CMYKcmyk(75%, 68.6%, 0%, 20%)
CIE-LABlab(35.46, 42.85, -73.46)
CIE-LCHlch(35.46, 85.05, 300.26°)
OKLaboklab(46.11% 0.0029 -0.2126)
OKLCHoklch(46.11% 0.213 270.8)
XYZxyz(14.0940, 8.7287, 58.0571)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340CC #CCBF33
analogous
#338CCC #3340CC #7333CC
triadic
#3340CC #CC3340 #40CC33
tetradic
#3340CC #CC338C #CCBF33 #33CC73
square
#3340CC #CC338C #CCBF33 #33CC73
split-complementary
#3340CC #CC7333 #8CCC33
monochromatic
#1B216A #27319B #3340CC #646ED8 #959CE4

Accessibility & contrast

On white

7.65
#3340CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3340CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340CC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340CC#FFFFFF#000000##FFFFFF
##3340CC1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#004CC9
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3340cc;
/* rgb */ color: rgb(51, 64, 204);
/* oklch */ color: oklch(46.1% 0.213 270.8);
Tailwind
colors: {
  custom: {
    50: '#8275dd',
    500: '#3340cc',
    950: '#000000',
  },
}
SCSS
$custom: #3340cc;
$custom-light: #8275dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3340cc",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 234.902,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.46113,
    "c": 0.21262,
    "h": 270.8
  },
  "luminance": 0.0873
}

Semantic roles & 50–950 ramp

primary
#3340CC
secondary
#D0CA8B
accent
#D645E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3340CC

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

Preview Lab → · Contrast checker → · Palette generator →

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