#3351BB#3351BB

#3351BB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.171 H 267.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#3351BB
RGBrgb(51, 81, 187)
HSLhsl(227, 57%, 47%)
HSVhsv(227, 73%, 73%)
CMYKcmyk(72.7%, 56.7%, 0%, 26.7%)
CIE-LABlab(38.15, 25.99, -59.13)
CIE-LCHlch(38.15, 64.59, 293.73°)
OKLaboklab(47.66% -0.0075 -0.1704)
OKLCHoklch(47.66% 0.171 267.5)
XYZxyz(13.2742, 10.1751, 48.2685)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3351BB #BB9D33
analogous
#3395BB #3351BB #5933BB
triadic
#3351BB #BB3351 #51BB33
tetradic
#3351BB #BB3395 #BB9D33 #33BB59
square
#3351BB #BB3395 #BB9D33 #33BB59
split-complementary
#3351BB #BB5933 #95BB33
monochromatic
#19275B #263C8B #3351BB #5974D2 #899CDF

Accessibility & contrast

On white

6.92
#3351BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3351BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3351BB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3351BB#FFFFFF#000000##FFFFFF
##3351BB1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3351bb;
/* rgb */ color: rgb(51, 81, 187);
/* oklch */ color: oklch(47.7% 0.171 267.5);
Tailwind
colors: {
  custom: {
    50: '#7d81d0',
    500: '#3351bb',
    950: '#000000',
  },
}
SCSS
$custom: #3351bb;
$custom-light: #7d81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3351bb",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 226.765,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.17062,
    "h": 267.5
  },
  "luminance": 0.10177
}

Semantic roles & 50–950 ramp

primary
#3351BB
secondary
#C9B981
accent
#BF47E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3351BB

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

Preview Lab → · Contrast checker → · Palette generator →

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