#335FB5#335FB5

#335FB5 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.145 H 262.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#335FB5
RGBrgb(51, 95, 181)
HSLhsl(220, 56%, 45%)
HSVhsv(220, 72%, 71%)
CMYKcmyk(71.8%, 47.5%, 0%, 29%)
CIE-LABlab(41.57, 14.62, -50.09)
CIE-LCHlch(41.57, 52.18, 286.27°)
OKLaboklab(50.11% -0.0198 -0.1436)
OKLCHoklch(50.11% 0.145 262.1)
XYZxyz(13.7950, 12.2230, 45.3393)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FB5 #B58933
analogous
#33A0B5 #335FB5 #4833B5
triadic
#335FB5 #B5335F #5FB533
tetradic
#335FB5 #B533A0 #B58933 #33B548
square
#335FB5 #B533A0 #B58933 #33B548
split-complementary
#335FB5 #B54833 #A0B533
monochromatic
#182D56 #264685 #335FB5 #567FCF #86A3DD

Accessibility & contrast

On white

6.10
#335FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#335FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FB5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FB5#FFFFFF#000000##FFFFFF
##335FB51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B8
Deuteranopia (green-blind)
#105CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335fb5;
/* rgb */ color: rgb(51, 95, 181);
/* oklch */ color: oklch(50.1% 0.145 262.1);
Tailwind
colors: {
  custom: {
    50: '#7b8bcc',
    500: '#335fb5',
    950: '#000000',
  },
}
SCSS
$custom: #335fb5;
$custom-light: #7b8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#335fb5",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 219.692,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50114,
    "c": 0.145,
    "h": 262.1
  },
  "luminance": 0.12224
}

Semantic roles & 50–950 ramp

primary
#335FB5
secondary
#C6AE7D
accent
#AC48DF
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #335FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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