#335FA4#335FA4

#335FA4 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.121 H 259.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#335FA4
RGBrgb(51, 95, 164)
HSLhsl(217, 53%, 42%)
HSVhsv(217, 69%, 64%)
CMYKcmyk(68.9%, 42.1%, 0%, 35.7%)
CIE-LABlab(40.52, 8.29, -41.75)
CIE-LCHlch(40.52, 42.56, 281.24°)
OKLaboklab(48.97% -0.023 -0.1191)
OKLCHoklch(48.97% 0.121 259.1)
XYZxyz(12.1559, 11.5673, 36.7069)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FA4 #A47833
analogous
#3398A4 #335FA4 #4033A4
triadic
#335FA4 #A4335F #5FA433
tetradic
#335FA4 #A43398 #A47833 #33A440
square
#335FA4 #A43398 #A47833 #33A440
split-complementary
#335FA4 #A44033 #98A433
monochromatic
#162947 #244475 #335FA4 #4D7DC8 #7B9FD6

Accessibility & contrast

On white

6.34
#335FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335FA4
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FA4#FFFFFF#000000##FFFFFF
##335FA41.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335fa4;
/* rgb */ color: rgb(51, 95, 164);
/* oklch */ color: oklch(49.0% 0.121 259.1);
Tailwind
colors: {
  custom: {
    50: '#788bbf',
    500: '#335fa4',
    950: '#000000',
  },
}
SCSS
$custom: #335fa4;
$custom-light: #788bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#335fa4",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 216.637,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.1213,
    "h": 259.1
  },
  "luminance": 0.11569
}

Semantic roles & 50–950 ramp

primary
#335FA4
secondary
#BFA274
accent
#A44CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #335FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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