#335CB9#335CB9

#335CB9 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.154 H 263.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#335CB9
RGBrgb(51, 92, 185)
HSLhsl(222, 57%, 46%)
HSVhsv(222, 72%, 73%)
CMYKcmyk(72.4%, 50.3%, 0%, 27.5%)
CIE-LABlab(40.99, 18.07, -53.36)
CIE-LCHlch(40.99, 56.34, 288.70°)
OKLaboklab(49.76% -0.0167 -0.1533)
OKLCHoklch(49.76% 0.154 263.8)
XYZxyz(13.9462, 11.8594, 47.4436)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB9 #B99033
analogous
#339FB9 #335CB9 #4D33B9
triadic
#335CB9 #B9335C #5CB933
tetradic
#335CB9 #B9339F #B99033 #33B94D
square
#335CB9 #B9339F #B99033 #33B94D
split-complementary
#335CB9 #B94D33 #9FB933
monochromatic
#192C59 #264489 #335CB9 #587DD1 #88A2DE

Accessibility & contrast

On white

6.23
#335CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#335CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB9
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB9#FFFFFF#000000##FFFFFF
##335CB91.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BC
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335cb9;
/* rgb */ color: rgb(51, 92, 185);
/* oklch */ color: oklch(49.8% 0.154 263.8);
Tailwind
colors: {
  custom: {
    50: '#7c89cf',
    500: '#335cb9',
    950: '#000000',
  },
}
SCSS
$custom: #335cb9;
$custom-light: #7c89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb9",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 185
  },
  "hsl": {
    "h": 221.642,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49758,
    "c": 0.15421,
    "h": 263.8
  },
  "luminance": 0.11861
}

Semantic roles & 50–950 ramp

primary
#335CB9
secondary
#C8B280
accent
#B148E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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