#3351C2#3351C2

#3351C2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.180 H 267.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3351C2
RGBrgb(51, 81, 194)
HSLhsl(227, 58%, 48%)
HSVhsv(227, 74%, 76%)
CMYKcmyk(73.7%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.69, 28.57, -62.34)
CIE-LCHlch(38.69, 68.58, 294.62°)
OKLaboklab(48.23% -0.0073 -0.1799)
OKLCHoklch(48.23% 0.18 267.7)
XYZxyz(14.0419, 10.4822, 52.3117)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3351C2 #C2A433
analogous
#3398C2 #3351C2 #5D33C2
triadic
#3351C2 #C23351 #51C233
tetradic
#3351C2 #C23398 #C2A433 #33C25D
square
#3351C2 #C23398 #C2A433 #33C25D
split-complementary
#3351C2 #C25D33 #98C233
monochromatic
#1A2961 #263D92 #3351C2 #5E77D5 #8EA0E1

Accessibility & contrast

On white

6.78
#3351C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3351C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3351C2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3351C2#FFFFFF#000000##FFFFFF
##3351C21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3351c2;
/* rgb */ color: rgb(51, 81, 194);
/* oklch */ color: oklch(48.2% 0.180 267.7);
Tailwind
colors: {
  custom: {
    50: '#7f81d5',
    500: '#3351c2',
    950: '#000000',
  },
}
SCSS
$custom: #3351c2;
$custom-light: #7f81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3351c2",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 227.413,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4823,
    "c": 0.18004,
    "h": 267.7
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#3351C2
secondary
#CCBD85
accent
#C146E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3351C2

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

Preview Lab → · Contrast checker → · Palette generator →

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