#335FC3#335FC3

#335FC3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.164 H 263.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#335FC3
RGBrgb(51, 95, 195)
HSLhsl(222, 59%, 48%)
HSVhsv(222, 74%, 76%)
CMYKcmyk(73.8%, 51.3%, 0%, 23.5%)
CIE-LABlab(42.50, 19.86, -56.75)
CIE-LCHlch(42.50, 60.12, 289.29°)
OKLaboklab(51.13% -0.018 -0.1632)
OKLCHoklch(51.13% 0.164 263.7)
XYZxyz(15.3043, 12.8267, 53.2884)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FC3 #C39733
analogous
#33A7C3 #335FC3 #4F33C3
triadic
#335FC3 #C3335F #5FC333
tetradic
#335FC3 #C333A7 #C39733 #33C34F
square
#335FC3 #C333A7 #C39733 #33C34F
split-complementary
#335FC3 #C34F33 #A7C333
monochromatic
#1A3062 #264792 #335FC3 #5E83D5 #8FA8E2

Accessibility & contrast

On white

5.89
#335FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#335FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FC3
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FC3#FFFFFF#000000##FFFFFF
##335FC31.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6BC7
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #335fc3;
/* rgb */ color: rgb(51, 95, 195);
/* oklch */ color: oklch(51.1% 0.164 263.7);
Tailwind
colors: {
  custom: {
    50: '#7e8bd6',
    500: '#335fc3',
    950: '#000000',
  },
}
SCSS
$custom: #335fc3;
$custom-light: #7e8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#335fc3",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 195
  },
  "hsl": {
    "h": 221.667,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.16421,
    "h": 263.7
  },
  "luminance": 0.12828
}

Semantic roles & 50–950 ramp

primary
#335FC3
secondary
#CCB786
accent
#B246E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #335FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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