#335CB7#335CB7

#335CB7 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.151 H 263.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#335CB7
RGBrgb(51, 92, 183)
HSLhsl(221, 56%, 46%)
HSVhsv(221, 72%, 72%)
CMYKcmyk(72.1%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.86, 17.32, -52.41)
CIE-LCHlch(40.86, 55.20, 288.29°)
OKLaboklab(49.61% -0.0169 -0.1505)
OKLCHoklch(49.61% 0.151 263.6)
XYZxyz(13.7366, 11.7755, 46.3395)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB7 #B78E33
analogous
#339EB7 #335CB7 #4C33B7
triadic
#335CB7 #B7335C #5CB733
tetradic
#335CB7 #B7339E #B78E33 #33B74C
square
#335CB7 #B7339E #B78E33 #33B74C
split-complementary
#335CB7 #B74C33 #9EB733
monochromatic
#182C57 #264487 #335CB7 #577DD0 #87A2DE

Accessibility & contrast

On white

6.26
#335CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#335CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB7#FFFFFF#000000##FFFFFF
##335CB71.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BA
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb7;
/* rgb */ color: rgb(51, 92, 183);
/* oklch */ color: oklch(49.6% 0.151 263.6);
Tailwind
colors: {
  custom: {
    50: '#7c89cd',
    500: '#335cb7',
    950: '#000000',
  },
}
SCSS
$custom: #335cb7;
$custom-light: #7c89cd;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb7",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 221.364,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49612,
    "c": 0.15146,
    "h": 263.6
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#335CB7
secondary
#C7B17F
accent
#B148E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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