#335EB7#335EB7

#335EB7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.149 H 262.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#335EB7
RGBrgb(51, 94, 183)
HSLhsl(220, 56%, 46%)
HSVhsv(220, 72%, 72%)
CMYKcmyk(72.1%, 48.6%, 0%, 28.2%)
CIE-LABlab(41.42, 16.02, -51.51)
CIE-LCHlch(41.42, 53.94, 287.28°)
OKLaboklab(50.04% -0.0186 -0.1478)
OKLCHoklch(50.04% 0.149 262.8)
XYZxyz(13.9121, 12.1266, 46.3980)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EB7 #B78C33
analogous
#33A0B7 #335EB7 #4A33B7
triadic
#335EB7 #B7335E #5EB733
tetradic
#335EB7 #B733A0 #B78C33 #33B74A
square
#335EB7 #B733A0 #B78C33 #33B74A
split-complementary
#335EB7 #B74A33 #A0B733
monochromatic
#182D57 #264587 #335EB7 #577ED0 #87A3DE

Accessibility & contrast

On white

6.13
#335EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#335EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EB7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EB7#FFFFFF#000000##FFFFFF
##335EB71.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68BA
Deuteranopia (green-blind)
#025CB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335eb7;
/* rgb */ color: rgb(51, 94, 183);
/* oklch */ color: oklch(50.0% 0.149 262.8);
Tailwind
colors: {
  custom: {
    50: '#7b8bcd',
    500: '#335eb7',
    950: '#000000',
  },
}
SCSS
$custom: #335eb7;
$custom-light: #7b8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#335eb7",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 220.455,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5004,
    "c": 0.14899,
    "h": 262.8
  },
  "luminance": 0.12128
}

Semantic roles & 50–950 ramp

primary
#335EB7
secondary
#C7B07F
accent
#AE48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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