#335BB7#335BB7

#335BB7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.153 H 264.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#335BB7
RGBrgb(51, 91, 183)
HSLhsl(222, 56%, 46%)
HSVhsv(222, 72%, 72%)
CMYKcmyk(72.1%, 50.3%, 0%, 28.2%)
CIE-LABlab(40.58, 17.97, -52.86)
CIE-LCHlch(40.58, 55.83, 288.77°)
OKLaboklab(49.4% -0.016 -0.1518)
OKLCHoklch(49.4% 0.153 264)
XYZxyz(13.6505, 11.6034, 46.3108)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BB7 #B78F33
analogous
#339DB7 #335BB7 #4D33B7
triadic
#335BB7 #B7335B #5BB733
tetradic
#335BB7 #B7339D #B78F33 #33B74D
square
#335BB7 #B7339D #B78F33 #33B74D
split-complementary
#335BB7 #B74D33 #9DB733
monochromatic
#182B57 #264387 #335BB7 #577CD0 #87A1DE

Accessibility & contrast

On white

6.32
#335BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#335BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BB7
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BB7#FFFFFF#000000##FFFFFF
##335BB71.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335bb7;
/* rgb */ color: rgb(51, 91, 183);
/* oklch */ color: oklch(49.4% 0.153 264.0);
Tailwind
colors: {
  custom: {
    50: '#7c88cd',
    500: '#335bb7',
    950: '#000000',
  },
}
SCSS
$custom: #335bb7;
$custom-light: #7c88cd;
$custom-dark: #000000;
JSON
{
  "hex": "#335bb7",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 221.818,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.494,
    "c": 0.15268,
    "h": 264
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#335BB7
secondary
#C7B17F
accent
#B248E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335BB7

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

Preview Lab → · Contrast checker → · Palette generator →

#335BB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva