#335A98#335A98

#335A98 is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.110 H 259.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#335A98
RGBrgb(51, 90, 152)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 66%, 60%)
CMYKcmyk(66.4%, 40.8%, 0%, 40.4%)
CIE-LABlab(38.34, 7.09, -38.05)
CIE-LCHlch(38.34, 38.70, 280.55°)
OKLaboklab(47.06% -0.0205 -0.1083)
OKLCHoklch(47.06% 0.11 259.3)
XYZxyz(10.6869, 10.2821, 31.1211)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A98 #987133
analogous
#338C98 #335A98 #3F3398
triadic
#335A98 #98335A #5A9833
tetradic
#335A98 #98338C #987133 #33983F
square
#335A98 #98338C #987133 #33983F
split-complementary
#335A98 #983F33 #8C9833
monochromatic
#14243C #243F6A #335A98 #4776C1 #7598D1

Accessibility & contrast

On white

6.87
#335A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#335A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A98
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A98#FFFFFF#000000##FFFFFF
##335A981.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#2F5697
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335a98;
/* rgb */ color: rgb(51, 90, 152);
/* oklch */ color: oklch(47.1% 0.110 259.3);
Tailwind
colors: {
  custom: {
    50: '#7588b7',
    500: '#335a98',
    950: '#000000',
  },
}
SCSS
$custom: #335a98;
$custom-light: #7588b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335a98",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 152
  },
  "hsl": {
    "h": 216.832,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47055,
    "c": 0.11024,
    "h": 259.3
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#335A98
secondary
#B99C6E
accent
#A44FD9
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A98

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

Preview Lab → · Contrast checker → · Palette generator →

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