#3351C5#3351C5

#3351C5 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.184 H 267.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#3351C5
RGBrgb(51, 81, 197)
HSLhsl(228, 59%, 49%)
HSVhsv(228, 74%, 77%)
CMYKcmyk(74.1%, 58.9%, 0%, 22.7%)
CIE-LABlab(38.93, 29.67, -63.70)
CIE-LCHlch(38.93, 70.28, 294.98°)
OKLaboklab(48.48% -0.0072 -0.1839)
OKLCHoklch(48.48% 0.184 267.8)
XYZxyz(14.3822, 10.6183, 54.1041)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3351C5 #C5A733
analogous
#339AC5 #3351C5 #5E33C5
triadic
#3351C5 #C53351 #51C533
tetradic
#3351C5 #C5339A #C5A733 #33C55E
square
#3351C5 #C5339A #C5A733 #33C55E
split-complementary
#3351C5 #C55E33 #9AC533
monochromatic
#1A2964 #263D94 #3351C5 #5F78D6 #90A1E2

Accessibility & contrast

On white

6.72
#3351C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3351C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3351C5
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3351C5#FFFFFF#000000##FFFFFF
##3351C51.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0055C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3351c5;
/* rgb */ color: rgb(51, 81, 197);
/* oklch */ color: oklch(48.5% 0.184 267.8);
Tailwind
colors: {
  custom: {
    50: '#7f81d7',
    500: '#3351c5',
    950: '#000000',
  },
}
SCSS
$custom: #3351c5;
$custom-light: #7f81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3351c5",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 197
  },
  "hsl": {
    "h": 227.671,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4848,
    "c": 0.18404,
    "h": 267.8
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#3351C5
secondary
#CDBF87
accent
#C246E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3351C5

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

Preview Lab → · Contrast checker → · Palette generator →

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