#335DA5#335DA5

#335DA5 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.6% C 0.125 H 260.4°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#335DA5
RGBrgb(51, 93, 165)
HSLhsl(218, 53%, 42%)
HSVhsv(218, 69%, 65%)
CMYKcmyk(69.1%, 43.6%, 0%, 35.3%)
CIE-LABlab(39.99, 9.95, -43.18)
CIE-LCHlch(39.99, 44.31, 282.98°)
OKLaboklab(48.58% -0.0208 -0.1233)
OKLCHoklch(48.58% 0.125 260.4)
XYZxyz(12.0687, 11.2479, 37.1250)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DA5 #A57B33
analogous
#3396A5 #335DA5 #4233A5
triadic
#335DA5 #A5335D #5DA533
tetradic
#335DA5 #A53396 #A57B33 #33A542
square
#335DA5 #A53396 #A57B33 #33A542
split-complementary
#335DA5 #A54233 #96A533
monochromatic
#162848 #254376 #335DA5 #4D7AC8 #7C9DD6

Accessibility & contrast

On white

6.46
#335DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#335DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DA5
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DA5#FFFFFF#000000##FFFFFF
##335DA51.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A8
Deuteranopia (green-blind)
#2759A4
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335da5;
/* rgb */ color: rgb(51, 93, 165);
/* oklch */ color: oklch(48.6% 0.125 260.4);
Tailwind
colors: {
  custom: {
    50: '#788ac0',
    500: '#335da5',
    950: '#000000',
  },
}
SCSS
$custom: #335da5;
$custom-light: #788ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#335da5",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 165
  },
  "hsl": {
    "h": 217.895,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48581,
    "c": 0.12507,
    "h": 260.4
  },
  "luminance": 0.11249
}

Semantic roles & 50–950 ramp

primary
#335DA5
secondary
#BFA475
accent
#A74CDC
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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