#335DA7#335DA7

#335DA7 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.128 H 260.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#335DA7
RGBrgb(51, 93, 167)
HSLhsl(218, 53%, 43%)
HSVhsv(218, 69%, 65%)
CMYKcmyk(69.5%, 44.3%, 0%, 34.5%)
CIE-LABlab(40.12, 10.70, -44.17)
CIE-LCHlch(40.12, 45.45, 283.61°)
OKLaboklab(48.71% -0.0204 -0.1263)
OKLCHoklch(48.71% 0.128 260.8)
XYZxyz(12.2522, 11.3213, 38.0912)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DA7 #A77D33
analogous
#3397A7 #335DA7 #4333A7
triadic
#335DA7 #A7335D #5DA733
tetradic
#335DA7 #A73397 #A77D33 #33A743
square
#335DA7 #A73397 #A77D33 #33A743
split-complementary
#335DA7 #A74333 #97A733
monochromatic
#162949 #254378 #335DA7 #4E7BC9 #7D9ED7

Accessibility & contrast

On white

6.43
#335DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DA7
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DA7#FFFFFF#000000##FFFFFF
##335DA71.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964AA
Deuteranopia (green-blind)
#255AA5
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #335da7;
/* rgb */ color: rgb(51, 93, 167);
/* oklch */ color: oklch(48.7% 0.128 260.8);
Tailwind
colors: {
  custom: {
    50: '#788ac1',
    500: '#335da7',
    950: '#000000',
  },
}
SCSS
$custom: #335da7;
$custom-light: #788ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#335da7",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 167
  },
  "hsl": {
    "h": 218.276,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48714,
    "c": 0.12789,
    "h": 260.8
  },
  "luminance": 0.11323
}

Semantic roles & 50–950 ramp

primary
#335DA7
secondary
#C0A576
accent
#A84BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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