#335BA5#335BA5

#335BA5 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.128 H 261.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#335BA5
RGBrgb(51, 91, 165)
HSLhsl(219, 53%, 42%)
HSVhsv(219, 69%, 65%)
CMYKcmyk(69.1%, 44.8%, 0%, 35.3%)
CIE-LABlab(39.41, 11.25, -44.11)
CIE-LCHlch(39.41, 45.52, 284.31°)
OKLaboklab(48.13% -0.0188 -0.1261)
OKLCHoklch(48.13% 0.128 261.5)
XYZxyz(11.8954, 10.9014, 37.0673)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA5 #A57D33
analogous
#3394A5 #335BA5 #4433A5
triadic
#335BA5 #A5335B #5BA533
tetradic
#335BA5 #A53394 #A57D33 #33A544
square
#335BA5 #A53394 #A57D33 #33A544
split-complementary
#335BA5 #A54433 #94A533
monochromatic
#162748 #254176 #335BA5 #4D78C8 #7C9CD6

Accessibility & contrast

On white

6.60
#335BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#335BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA5#FFFFFF#000000##FFFFFF
##335BA51.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A8
Deuteranopia (green-blind)
#2358A3
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ba5;
/* rgb */ color: rgb(51, 91, 165);
/* oklch */ color: oklch(48.1% 0.128 261.5);
Tailwind
colors: {
  custom: {
    50: '#7888c0',
    500: '#335ba5',
    950: '#000000',
  },
}
SCSS
$custom: #335ba5;
$custom-light: #7888c0;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba5",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 165
  },
  "hsl": {
    "h": 218.947,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48133,
    "c": 0.1275,
    "h": 261.5
  },
  "luminance": 0.10903
}

Semantic roles & 50–950 ramp

primary
#335BA5
secondary
#BFA575
accent
#A94CDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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