#335FA8#335FA8

#335FA8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.127 H 260.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#335FA8
RGBrgb(51, 95, 168)
HSLhsl(217, 53%, 43%)
HSVhsv(217, 70%, 66%)
CMYKcmyk(69.6%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.76, 9.78, -43.74)
CIE-LCHlch(40.76, 44.82, 282.60°)
OKLaboklab(49.23% -0.0221 -0.1249)
OKLCHoklch(49.23% 0.127 260)
XYZxyz(12.5228, 11.7141, 38.6393)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA8 #A87C33
analogous
#3399A8 #335FA8 #4133A8
triadic
#335FA8 #A8335F #5FA833
tetradic
#335FA8 #A83399 #A87C33 #33A841
square
#335FA8 #A83399 #A87C33 #33A841
split-complementary
#335FA8 #A84133 #99A833
monochromatic
#162A4A #254479 #335FA8 #4F7DC9 #7EA0D8

Accessibility & contrast

On white

6.28
#335FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#335FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FA8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA8#FFFFFF#000000##FFFFFF
##335FA81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#285BA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335fa8;
/* rgb */ color: rgb(51, 95, 168);
/* oklch */ color: oklch(49.2% 0.127 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bc2',
    500: '#335fa8',
    950: '#000000',
  },
}
SCSS
$custom: #335fa8;
$custom-light: #788bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa8",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 217.436,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49229,
    "c": 0.12689,
    "h": 260
  },
  "luminance": 0.11715
}

Semantic roles & 50–950 ramp

primary
#335FA8
secondary
#C1A576
accent
#A64BDD
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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