#335BA7#335BA7

#335BA7 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.130 H 261.9°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#335BA7
RGBrgb(51, 91, 167)
HSLhsl(219, 53%, 43%)
HSVhsv(219, 69%, 65%)
CMYKcmyk(69.5%, 45.5%, 0%, 34.5%)
CIE-LABlab(39.54, 11.99, -45.10)
CIE-LCHlch(39.54, 46.67, 284.89°)
OKLaboklab(48.27% -0.0184 -0.129)
OKLCHoklch(48.27% 0.13 261.9)
XYZxyz(12.0789, 10.9748, 38.0335)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BA7 #A77F33
analogous
#3395A7 #335BA7 #4533A7
triadic
#335BA7 #A7335B #5BA733
tetradic
#335BA7 #A73395 #A77F33 #33A745
square
#335BA7 #A73395 #A77F33 #33A745
split-complementary
#335BA7 #A74533 #95A733
monochromatic
#162849 #254178 #335BA7 #4E79C9 #7D9CD7

Accessibility & contrast

On white

6.57
#335BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#335BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BA7
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BA7#FFFFFF#000000##FFFFFF
##335BA71.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#2058A5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335ba7;
/* rgb */ color: rgb(51, 91, 167);
/* oklch */ color: oklch(48.3% 0.130 261.9);
Tailwind
colors: {
  custom: {
    50: '#7888c2',
    500: '#335ba7',
    950: '#000000',
  },
}
SCSS
$custom: #335ba7;
$custom-light: #7888c2;
$custom-dark: #000000;
JSON
{
  "hex": "#335ba7",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 167
  },
  "hsl": {
    "h": 219.31,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48269,
    "c": 0.13032,
    "h": 261.9
  },
  "luminance": 0.10976
}

Semantic roles & 50–950 ramp

primary
#335BA7
secondary
#C0A676
accent
#AA4BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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