#335B98#335B98

#335B98 is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.3% C 0.109 H 258.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#335B98
RGBrgb(51, 91, 152)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 66%, 60%)
CMYKcmyk(66.4%, 40.1%, 0%, 40.4%)
CIE-LABlab(38.64, 6.44, -37.57)
CIE-LCHlch(38.64, 38.12, 279.73°)
OKLaboklab(47.29% -0.0215 -0.1069)
OKLCHoklch(47.29% 0.109 258.6)
XYZxyz(10.7718, 10.4519, 31.1494)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B98 #987033
analogous
#338D98 #335B98 #3E3398
triadic
#335B98 #98335B #5B9833
tetradic
#335B98 #98338D #987033 #33983E
square
#335B98 #98338D #987033 #33983E
split-complementary
#335B98 #983E33 #8D9833
monochromatic
#14243C #24406A #335B98 #4777C1 #7599D1

Accessibility & contrast

On white

6.79
#335B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#335B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B98
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B98#FFFFFF#000000##FFFFFF
##335B981.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609A
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#006972
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335b98;
/* rgb */ color: rgb(51, 91, 152);
/* oklch */ color: oklch(47.3% 0.109 258.6);
Tailwind
colors: {
  custom: {
    50: '#7589b6',
    500: '#335b98',
    950: '#000000',
  },
}
SCSS
$custom: #335b98;
$custom-light: #7589b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335b98",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 152
  },
  "hsl": {
    "h": 216.238,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.10907,
    "h": 258.6
  },
  "luminance": 0.10453
}

Semantic roles & 50–950 ramp

primary
#335B98
secondary
#B99B6E
accent
#A24FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B98

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

Preview Lab → · Contrast checker → · Palette generator →

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