#3340C1#3340C1

#3340C1 is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.199 H 271.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#3340C1
RGBrgb(51, 64, 193)
HSLhsl(235, 58%, 48%)
HSVhsv(235, 74%, 76%)
CMYKcmyk(73.6%, 66.8%, 0%, 24.3%)
CIE-LABlab(34.44, 39.03, -68.72)
CIE-LCHlch(34.44, 79.03, 299.60°)
OKLaboklab(45.06% 0.004 -0.1987)
OKLCHoklch(45.06% 0.199 271.2)
XYZxyz(12.8210, 8.2195, 51.3526)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340C1 #C1B433
analogous
#3387C1 #3340C1 #6D33C1
triadic
#3340C1 #C13340 #40C133
tetradic
#3340C1 #C13387 #C1B433 #33C16D
square
#3340C1 #C13387 #C1B433 #33C16D
split-complementary
#3340C1 #C16D33 #87C133
monochromatic
#192060 #263091 #3340C1 #5D68D4 #8D95E1

Accessibility & contrast

On white

7.94
#3340C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3340C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340C1
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340C1#FFFFFF#000000##FFFFFF
##3340C11.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3340c1;
/* rgb */ color: rgb(51, 64, 193);
/* oklch */ color: oklch(45.1% 0.199 271.2);
Tailwind
colors: {
  custom: {
    50: '#8075d5',
    500: '#3340c1',
    950: '#000000',
  },
}
SCSS
$custom: #3340c1;
$custom-light: #8075d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3340c1",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 234.507,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.19879,
    "h": 271.2
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#3340C1
secondary
#CBC584
accent
#D346E1
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3340C1

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

Preview Lab → · Contrast checker → · Palette generator →

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