#335FA3#335FA3

#335FA3 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 48.9% C 0.120 H 258.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#335FA3
RGBrgb(51, 95, 163)
HSLhsl(216, 52%, 42%)
HSVhsv(216, 69%, 64%)
CMYKcmyk(68.7%, 41.7%, 0%, 36.1%)
CIE-LABlab(40.46, 7.92, -41.25)
CIE-LCHlch(40.46, 42.00, 280.87°)
OKLaboklab(48.9% -0.0232 -0.1176)
OKLCHoklch(48.9% 0.12 258.9)
XYZxyz(12.0659, 11.5313, 36.2331)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA3 #A37733
analogous
#3397A3 #335FA3 #3F33A3
triadic
#335FA3 #A3335F #5FA333
tetradic
#335FA3 #A33397 #A37733 #33A33F
square
#335FA3 #A33397 #A37733 #33A33F
split-complementary
#335FA3 #A33F33 #97A333
monochromatic
#162946 #244474 #335FA3 #4C7CC7 #7B9ED6

Accessibility & contrast

On white

6.35
#335FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#335FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FA3
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA3#FFFFFF#000000##FFFFFF
##335FA31.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A6
Deuteranopia (green-blind)
#2E5BA2
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335fa3;
/* rgb */ color: rgb(51, 95, 163);
/* oklch */ color: oklch(48.9% 0.120 258.9);
Tailwind
colors: {
  custom: {
    50: '#778bbf',
    500: '#335fa3',
    950: '#000000',
  },
}
SCSS
$custom: #335fa3;
$custom-light: #778bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa3",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 216.429,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48903,
    "c": 0.1199,
    "h": 258.9
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

primary
#335FA3
secondary
#BEA173
accent
#A34CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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