#335DA4#335DA4

#335DA4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.5% C 0.124 H 260.2°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#335DA4
RGBrgb(51, 93, 164)
HSLhsl(218, 53%, 42%)
HSVhsv(218, 69%, 64%)
CMYKcmyk(68.9%, 43.3%, 0%, 35.7%)
CIE-LABlab(39.93, 9.58, -42.68)
CIE-LCHlch(39.93, 43.74, 282.65°)
OKLaboklab(48.52% -0.021 -0.1219)
OKLCHoklch(48.52% 0.124 260.2)
XYZxyz(11.9780, 11.2116, 36.6476)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DA4 #A47A33
analogous
#3396A4 #335DA4 #4233A4
triadic
#335DA4 #A4335D #5DA433
tetradic
#335DA4 #A43396 #A47A33 #33A442
square
#335DA4 #A43396 #A47A33 #33A442
split-complementary
#335DA4 #A44233 #96A433
monochromatic
#162847 #244375 #335DA4 #4D7AC8 #7B9DD6

Accessibility & contrast

On white

6.48
#335DA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#335DA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DA4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DA4#FFFFFF#000000##FFFFFF
##335DA41.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A7
Deuteranopia (green-blind)
#2959A3
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335da4;
/* rgb */ color: rgb(51, 93, 164);
/* oklch */ color: oklch(48.5% 0.124 260.2);
Tailwind
colors: {
  custom: {
    50: '#788abf',
    500: '#335da4',
    950: '#000000',
  },
}
SCSS
$custom: #335da4;
$custom-light: #788abf;
$custom-dark: #000000;
JSON
{
  "hex": "#335da4",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 164
  },
  "hsl": {
    "h": 217.699,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48515,
    "c": 0.12367,
    "h": 260.2
  },
  "luminance": 0.11213
}

Semantic roles & 50–950 ramp

primary
#335DA4
secondary
#BFA374
accent
#A64CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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