#335BA6#335BA6

#335BA6 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.129 H 261.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#335BA6
RGBrgb(51, 91, 166)
HSLhsl(219, 53%, 43%)
HSVhsv(219, 69%, 65%)
CMYKcmyk(69.3%, 45.2%, 0%, 34.9%)
CIE-LABlab(39.48, 11.62, -44.60)
CIE-LCHlch(39.48, 46.09, 284.60°)
OKLaboklab(48.2% -0.0186 -0.1276)
OKLCHoklch(48.2% 0.129 261.7)
XYZxyz(11.9868, 10.9379, 37.5485)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA6 #A67E33
analogous
#3395A6 #335BA6 #4433A6
triadic
#335BA6 #A6335B #5BA633
tetradic
#335BA6 #A63395 #A67E33 #33A644
square
#335BA6 #A63395 #A67E33 #33A644
split-complementary
#335BA6 #A64433 #95A633
monochromatic
#162848 #254177 #335BA6 #4E78C9 #7C9CD7

Accessibility & contrast

On white

6.59
#335BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#335BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA6
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA6#FFFFFF#000000##FFFFFF
##335BA61.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#2158A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ba6;
/* rgb */ color: rgb(51, 91, 166);
/* oklch */ color: oklch(48.2% 0.129 261.7);
Tailwind
colors: {
  custom: {
    50: '#7888c1',
    500: '#335ba6',
    950: '#000000',
  },
}
SCSS
$custom: #335ba6;
$custom-light: #7888c1;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba6",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 219.13,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48201,
    "c": 0.12891,
    "h": 261.7
  },
  "luminance": 0.10939
}

Semantic roles & 50–950 ramp

primary
#335BA6
secondary
#C0A675
accent
#AA4BDC
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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