#335BA4#335BA4

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

Color values

HEX#335BA4
RGBrgb(51, 91, 164)
HSLhsl(219, 53%, 42%)
HSVhsv(219, 69%, 64%)
CMYKcmyk(68.9%, 44.5%, 0%, 35.7%)
CIE-LABlab(39.35, 10.88, -43.61)
CIE-LCHlch(39.35, 44.95, 284.00°)
OKLaboklab(48.07% -0.019 -0.1246)
OKLCHoklch(48.07% 0.126 261.3)
XYZxyz(11.8048, 10.8651, 36.5898)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA4 #A47C33
analogous
#3394A4 #335BA4 #4433A4
triadic
#335BA4 #A4335B #5BA433
tetradic
#335BA4 #A43394 #A47C33 #33A444
square
#335BA4 #A43394 #A47C33 #33A444
split-complementary
#335BA4 #A44433 #94A433
monochromatic
#162747 #244175 #335BA4 #4D78C8 #7B9BD6

Accessibility & contrast

On white

6.62
#335BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#335BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA4
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA4#FFFFFF#000000##FFFFFF
##335BA41.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A7
Deuteranopia (green-blind)
#2458A3
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ba4;
/* rgb */ color: rgb(51, 91, 164);
/* oklch */ color: oklch(48.1% 0.126 261.3);
Tailwind
colors: {
  custom: {
    50: '#7888bf',
    500: '#335ba4',
    950: '#000000',
  },
}
SCSS
$custom: #335ba4;
$custom-light: #7888bf;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba4",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 164
  },
  "hsl": {
    "h": 218.761,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48066,
    "c": 0.12609,
    "h": 261.3
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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