#335799#335799

#335799 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.4% C 0.115 H 261.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#335799
RGBrgb(51, 87, 153)
HSLhsl(219, 50%, 40%)
HSVhsv(219, 67%, 60%)
CMYKcmyk(66.7%, 43.1%, 0%, 40%)
CIE-LABlab(37.52, 9.40, -39.97)
CIE-LCHlch(37.52, 41.06, 283.24°)
OKLaboklab(46.43% -0.0171 -0.114)
OKLCHoklch(46.43% 0.115 261.5)
XYZxyz(10.5212, 9.8191, 31.4716)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335799 #997533
analogous
#338A99 #335799 #423399
triadic
#335799 #993357 #579933
tetradic
#335799 #99338A #997533 #339942
square
#335799 #99338A #997533 #339942
split-complementary
#335799 #994233 #8A9933
monochromatic
#14233D #243D6B #335799 #4773C2 #7596D1

Accessibility & contrast

On white

7.09
#335799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#335799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335799
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335799#FFFFFF#000000##FFFFFF
##3357991.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#285498
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335799;
/* rgb */ color: rgb(51, 87, 153);
/* oklch */ color: oklch(46.4% 0.115 261.5);
Tailwind
colors: {
  custom: {
    50: '#7685b7',
    500: '#335799',
    950: '#000000',
  },
}
SCSS
$custom: #335799;
$custom-light: #7685b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335799",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 218.824,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.46433,
    "c": 0.11528,
    "h": 261.5
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#335799
secondary
#B99F6E
accent
#A84EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335799

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

Preview Lab → · Contrast checker → · Palette generator →

#335799 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva