#335F98#335F98

#335F98 is a mid, moderate cyan. Relative luminance 0.112; OKLCH L 48.2% C 0.105 H 255.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#335F98
RGBrgb(51, 95, 152)
HSLhsl(214, 50%, 40%)
HSVhsv(214, 66%, 60%)
CMYKcmyk(66.4%, 37.5%, 0%, 40.4%)
CIE-LABlab(39.84, 3.88, -35.67)
CIE-LCHlch(39.84, 35.88, 276.21°)
OKLaboklab(48.22% -0.0258 -0.1013)
OKLCHoklch(48.22% 0.105 255.7)
XYZxyz(11.1229, 11.1541, 31.2665)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F98 #986C33
analogous
#339298 #335F98 #393398
triadic
#335F98 #98335F #5F9833
tetradic
#335F98 #983392 #986C33 #339839
square
#335F98 #983392 #986C33 #339839
split-complementary
#335F98 #983933 #929833
monochromatic
#14263C #24426A #335F98 #477CC1 #759DD1

Accessibility & contrast

On white

6.50
#335F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#335F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F98
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F98#FFFFFF#000000##FFFFFF
##335F981.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46639A
Deuteranopia (green-blind)
#385A97
Tritanopia (blue-blind)
#006C74
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335f98;
/* rgb */ color: rgb(51, 95, 152);
/* oklch */ color: oklch(48.2% 0.105 255.7);
Tailwind
colors: {
  custom: {
    50: '#758cb6',
    500: '#335f98',
    950: '#000000',
  },
}
SCSS
$custom: #335f98;
$custom-light: #758cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#335f98",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 152
  },
  "hsl": {
    "h": 213.861,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48217,
    "c": 0.10454,
    "h": 255.7
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

primary
#335F98
secondary
#B9986E
accent
#9D4FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #335F98

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

Preview Lab → · Contrast checker → · Palette generator →

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