#335CB5#335CB5

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

Color values

HEX#335CB5
RGBrgb(51, 92, 181)
HSLhsl(221, 56%, 45%)
HSVhsv(221, 72%, 71%)
CMYKcmyk(71.8%, 49.2%, 0%, 29%)
CIE-LABlab(40.72, 16.57, -51.45)
CIE-LCHlch(40.72, 54.05, 287.85°)
OKLaboklab(49.47% -0.0172 -0.1477)
OKLCHoklch(49.47% 0.149 263.4)
XYZxyz(13.5299, 11.6929, 45.2510)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB5 #B58C33
analogous
#339DB5 #335CB5 #4B33B5
triadic
#335CB5 #B5335C #5CB533
tetradic
#335CB5 #B5339D #B58C33 #33B54B
square
#335CB5 #B5339D #B58C33 #33B54B
split-complementary
#335CB5 #B54B33 #9DB533
monochromatic
#182B56 #264485 #335CB5 #567CCF #86A1DD

Accessibility & contrast

On white

6.29
#335CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#335CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB5
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB5#FFFFFF#000000##FFFFFF
##335CB51.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb5;
/* rgb */ color: rgb(51, 92, 181);
/* oklch */ color: oklch(49.5% 0.149 263.4);
Tailwind
colors: {
  custom: {
    50: '#7b89cc',
    500: '#335cb5',
    950: '#000000',
  },
}
SCSS
$custom: #335cb5;
$custom-light: #7b89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb5",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 221.077,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49468,
    "c": 0.14868,
    "h": 263.4
  },
  "luminance": 0.11694
}

Semantic roles & 50–950 ramp

primary
#335CB5
secondary
#C6AF7D
accent
#B048DF
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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