#335CB2#335CB2

#335CB2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.145 H 263.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#335CB2
RGBrgb(51, 92, 178)
HSLhsl(221, 55%, 45%)
HSVhsv(221, 71%, 70%)
CMYKcmyk(71.3%, 48.3%, 0%, 30.2%)
CIE-LABlab(40.53, 15.45, -50.01)
CIE-LCHlch(40.53, 52.34, 287.17°)
OKLaboklab(49.25% -0.0176 -0.1434)
OKLCHoklch(49.25% 0.145 263)
XYZxyz(13.2254, 11.5711, 43.6473)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB2 #B28933
analogous
#339CB2 #335CB2 #4933B2
triadic
#335CB2 #B2335C #5CB233
tetradic
#335CB2 #B2339C #B28933 #33B249
square
#335CB2 #B2339C #B28933 #33B249
split-complementary
#335CB2 #B24933 #9CB233
monochromatic
#182B53 #254382 #335CB2 #547CCE #84A0DC

Accessibility & contrast

On white

6.34
#335CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#335CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB2#FFFFFF#000000##FFFFFF
##335CB21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#095AB0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb2;
/* rgb */ color: rgb(51, 92, 178);
/* oklch */ color: oklch(49.3% 0.145 263.0);
Tailwind
colors: {
  custom: {
    50: '#7b89ca',
    500: '#335cb2',
    950: '#000000',
  },
}
SCSS
$custom: #335cb2;
$custom-light: #7b89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb2",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 220.63,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49253,
    "c": 0.14451,
    "h": 263
  },
  "luminance": 0.11572
}

Semantic roles & 50–950 ramp

primary
#335CB2
secondary
#C5AD7C
accent
#AE49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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