#335CB6#335CB6

#335CB6 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.150 H 263.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#335CB6
RGBrgb(51, 92, 182)
HSLhsl(221, 56%, 46%)
HSVhsv(221, 72%, 71%)
CMYKcmyk(72%, 49.5%, 0%, 28.6%)
CIE-LABlab(40.79, 16.94, -51.93)
CIE-LCHlch(40.79, 54.63, 288.07°)
OKLaboklab(49.54% -0.017 -0.1491)
OKLCHoklch(49.54% 0.15 263.5)
XYZxyz(13.6329, 11.7341, 45.7933)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB6 #B68D33
analogous
#339DB6 #335CB6 #4B33B6
triadic
#335CB6 #B6335C #5CB633
tetradic
#335CB6 #B6339D #B68D33 #33B64B
square
#335CB6 #B6339D #B68D33 #33B64B
split-complementary
#335CB6 #B64B33 #9DB633
monochromatic
#182C56 #264486 #335CB6 #567CD0 #86A1DD

Accessibility & contrast

On white

6.27
#335CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#335CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB6
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB6#FFFFFF#000000##FFFFFF
##335CB61.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb6;
/* rgb */ color: rgb(51, 92, 182);
/* oklch */ color: oklch(49.5% 0.150 263.5);
Tailwind
colors: {
  custom: {
    50: '#7b89cc',
    500: '#335cb6',
    950: '#000000',
  },
}
SCSS
$custom: #335cb6;
$custom-light: #7b89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb6",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 221.221,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4954,
    "c": 0.15007,
    "h": 263.5
  },
  "luminance": 0.11735
}

Semantic roles & 50–950 ramp

primary
#335CB6
secondary
#C7B07E
accent
#B048E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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