#335998#335998

#335998 is a mid, moderate blue. Relative luminance 0.101; OKLCH L 46.8% C 0.111 H 260.0°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#335998
RGBrgb(51, 89, 152)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 66%, 60%)
CMYKcmyk(66.4%, 41.4%, 0%, 40.4%)
CIE-LABlab(38.05, 7.73, -38.52)
CIE-LCHlch(38.05, 39.29, 281.35°)
OKLaboklab(46.83% -0.0194 -0.1097)
OKLCHoklch(46.83% 0.111 260)
XYZxyz(10.6031, 10.1145, 31.0932)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335998 #987233
analogous
#338C98 #335998 #403398
triadic
#335998 #983359 #599833
tetradic
#335998 #98338C #987233 #339840
square
#335998 #98338C #987233 #339840
split-complementary
#335998 #984033 #8C9833
monochromatic
#14233C #243E6A #335998 #4775C1 #7597D1

Accessibility & contrast

On white

6.95
#335998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#335998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335998
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335998#FFFFFF#000000##FFFFFF
##3359981.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5F9A
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335998;
/* rgb */ color: rgb(51, 89, 152);
/* oklch */ color: oklch(46.8% 0.111 260.0);
Tailwind
colors: {
  custom: {
    50: '#7587b7',
    500: '#335998',
    950: '#000000',
  },
}
SCSS
$custom: #335998;
$custom-light: #7587b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335998",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 152
  },
  "hsl": {
    "h": 217.426,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46825,
    "c": 0.11143,
    "h": 260
  },
  "luminance": 0.10116
}

Semantic roles & 50–950 ramp

primary
#335998
secondary
#B99D6E
accent
#A54FD9
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335998

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

Preview Lab → · Contrast checker → · Palette generator →

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