#3351BF#3351BF

#3351BF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.176 H 267.6°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#3351BF
RGBrgb(51, 81, 191)
HSLhsl(227, 58%, 47%)
HSVhsv(227, 73%, 75%)
CMYKcmyk(73.3%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.46, 27.47, -60.97)
CIE-LCHlch(38.46, 66.87, 294.25°)
OKLaboklab(47.98% -0.0074 -0.1759)
OKLCHoklch(47.98% 0.176 267.6)
XYZxyz(13.7084, 10.3488, 50.5552)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3351BF #BFA133
analogous
#3397BF #3351BF #5B33BF
triadic
#3351BF #BF3351 #51BF33
tetradic
#3351BF #BF3397 #BFA133 #33BF5B
square
#3351BF #BF3397 #BFA133 #33BF5B
split-complementary
#3351BF #BF5B33 #97BF33
monochromatic
#19285E #263D8F #3351BF #5C75D3 #8C9EE0

Accessibility & contrast

On white

6.84
#3351BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3351BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3351BF
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3351BF#FFFFFF#000000##FFFFFF
##3351BF1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3351bf;
/* rgb */ color: rgb(51, 81, 191);
/* oklch */ color: oklch(48.0% 0.176 267.6);
Tailwind
colors: {
  custom: {
    50: '#7e81d3',
    500: '#3351bf',
    950: '#000000',
  },
}
SCSS
$custom: #3351bf;
$custom-light: #7e81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3351bf",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 227.143,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47983,
    "c": 0.17602,
    "h": 267.6
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#3351BF
secondary
#CBBB83
accent
#C047E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3351BF

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

Preview Lab → · Contrast checker → · Palette generator →

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