#335FC5#335FC5

#335FC5 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.167 H 263.9°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#335FC5
RGBrgb(51, 95, 197)
HSLhsl(222, 59%, 49%)
HSVhsv(222, 74%, 77%)
CMYKcmyk(74.1%, 51.8%, 0%, 22.7%)
CIE-LABlab(42.64, 20.60, -57.68)
CIE-LCHlch(42.64, 61.25, 289.66°)
OKLaboklab(51.27% -0.0177 -0.166)
OKLCHoklch(51.27% 0.167 263.9)
XYZxyz(15.5319, 12.9177, 54.4873)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FC5 #C59933
analogous
#33A8C5 #335FC5 #5033C5
triadic
#335FC5 #C5335F #5FC533
tetradic
#335FC5 #C533A8 #C59933 #33C550
square
#335FC5 #C533A8 #C59933 #33C550
split-complementary
#335FC5 #C55033 #A8C533
monochromatic
#1A3064 #264894 #335FC5 #5F83D6 #90A9E2

Accessibility & contrast

On white

5.86
#335FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#335FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FC5
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FC5#FFFFFF#000000##FFFFFF
##335FC51.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6CC9
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #335fc5;
/* rgb */ color: rgb(51, 95, 197);
/* oklch */ color: oklch(51.3% 0.167 263.9);
Tailwind
colors: {
  custom: {
    50: '#7e8bd7',
    500: '#335fc5',
    950: '#000000',
  },
}
SCSS
$custom: #335fc5;
$custom-light: #7e8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#335fc5",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 221.918,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51274,
    "c": 0.16692,
    "h": 263.9
  },
  "luminance": 0.12919
}

Semantic roles & 50–950 ramp

primary
#335FC5
secondary
#CDB887
accent
#B346E2
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #335FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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