#3351B2#3351B2

#3351B2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.158 H 267.1°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#3351B2
RGBrgb(51, 81, 178)
HSLhsl(226, 55%, 45%)
HSVhsv(226, 71%, 70%)
CMYKcmyk(71.3%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.48, 22.65, -54.92)
CIE-LCHlch(37.48, 59.41, 292.41°)
OKLaboklab(46.94% -0.008 -0.1581)
OKLCHoklch(46.94% 0.158 267.1)
XYZxyz(12.3408, 9.8018, 43.3524)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3351B2 #B29433
analogous
#3390B2 #3351B2 #5533B2
triadic
#3351B2 #B23351 #51B233
tetradic
#3351B2 #B23390 #B29433 #33B255
square
#3351B2 #B23390 #B29433 #33B255
split-complementary
#3351B2 #B25533 #90B233
monochromatic
#182653 #253B82 #3351B2 #5471CE #8498DC

Accessibility & contrast

On white

7.09
#3351B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3351B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3351B2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3351B2#FFFFFF#000000##FFFFFF
##3351B21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015EB5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3351b2;
/* rgb */ color: rgb(51, 81, 178);
/* oklch */ color: oklch(46.9% 0.158 267.1);
Tailwind
colors: {
  custom: {
    50: '#7b81ca',
    500: '#3351b2',
    950: '#000000',
  },
}
SCSS
$custom: #3351b2;
$custom-light: #7b81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3351b2",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 225.827,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46941,
    "c": 0.15828,
    "h": 267.1
  },
  "luminance": 0.09803
}

Semantic roles & 50–950 ramp

primary
#3351B2
secondary
#C5B47C
accent
#BB49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3351B2

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

Preview Lab → · Contrast checker → · Palette generator →

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