#335FB3#335FB3

#335FB3 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.142 H 261.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#335FB3
RGBrgb(51, 95, 179)
HSLhsl(219, 56%, 45%)
HSVhsv(219, 72%, 70%)
CMYKcmyk(71.5%, 46.9%, 0%, 29.8%)
CIE-LABlab(41.44, 13.88, -49.13)
CIE-LCHlch(41.44, 51.05, 285.77°)
OKLaboklab(49.97% -0.0201 -0.1408)
OKLCHoklch(49.97% 0.142 261.9)
XYZxyz(13.5912, 12.1415, 44.2663)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB3 #B38733
analogous
#339FB3 #335FB3 #4733B3
triadic
#335FB3 #B3335F #5FB333
tetradic
#335FB3 #B3339F #B38733 #33B347
square
#335FB3 #B3339F #B38733 #33B347
split-complementary
#335FB3 #B34733 #9FB333
monochromatic
#182C54 #254683 #335FB3 #557FCE #84A2DC

Accessibility & contrast

On white

6.12
#335FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#335FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB3#FFFFFF#000000##FFFFFF
##335FB31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#165CB1
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335fb3;
/* rgb */ color: rgb(51, 95, 179);
/* oklch */ color: oklch(50.0% 0.142 261.9);
Tailwind
colors: {
  custom: {
    50: '#7b8bca',
    500: '#335fb3',
    950: '#000000',
  },
}
SCSS
$custom: #335fb3;
$custom-light: #7b8bca;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb3",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 219.375,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49974,
    "c": 0.14223,
    "h": 261.9
  },
  "luminance": 0.12143
}

Semantic roles & 50–950 ramp

primary
#335FB3
secondary
#C6AC7C
accent
#AB49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #335FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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