#335698#335698

#335698 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.1% C 0.115 H 261.9°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#335698
RGBrgb(51, 86, 152)
HSLhsl(219, 50%, 40%)
HSVhsv(219, 66%, 60%)
CMYKcmyk(66.4%, 43.4%, 0%, 40.4%)
CIE-LABlab(37.16, 9.69, -39.93)
CIE-LCHlch(37.16, 41.09, 283.63°)
OKLaboklab(46.14% -0.0163 -0.1139)
OKLCHoklch(46.14% 0.115 261.9)
XYZxyz(10.3585, 9.6254, 31.0117)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335698 #987533
analogous
#338998 #335698 #433398
triadic
#335698 #983356 #569833
tetradic
#335698 #983389 #987533 #339843
square
#335698 #983389 #987533 #339843
split-complementary
#335698 #984333 #899833
monochromatic
#14223C #243C6A #335698 #4771C1 #7595D1

Accessibility & contrast

On white

7.18
#335698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#335698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335698
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335698#FFFFFF#000000##FFFFFF
##3356981.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9B
Deuteranopia (green-blind)
#275397
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335698;
/* rgb */ color: rgb(51, 86, 152);
/* oklch */ color: oklch(46.1% 0.115 261.9);
Tailwind
colors: {
  custom: {
    50: '#7685b7',
    500: '#335698',
    950: '#000000',
  },
}
SCSS
$custom: #335698;
$custom-light: #7685b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335698",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 219.208,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4614,
    "c": 0.11507,
    "h": 261.9
  },
  "luminance": 0.09626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335698

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

Preview Lab → · Contrast checker → · Palette generator →

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