#335F97#335F97

#335F97 is a mid, moderate cyan. Relative luminance 0.111; OKLCH L 48.2% C 0.103 H 255.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#335F97
RGBrgb(51, 95, 151)
HSLhsl(214, 50%, 40%)
HSVhsv(214, 66%, 59%)
CMYKcmyk(66.2%, 37.1%, 0%, 40.8%)
CIE-LABlab(39.78, 3.52, -35.16)
CIE-LCHlch(39.78, 35.34, 275.71°)
OKLaboklab(48.16% -0.0261 -0.0998)
OKLCHoklch(48.16% 0.103 255.4)
XYZxyz(11.0413, 11.1215, 30.8369)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F97 #976B33
analogous
#339197 #335F97 #393397
triadic
#335F97 #97335F #5F9733
tetradic
#335F97 #973391 #976B33 #339739
square
#335F97 #973391 #976B33 #339739
split-complementary
#335F97 #973933 #919733
monochromatic
#14253C #244269 #335F97 #477CC1 #749DD0

Accessibility & contrast

On white

6.51
#335F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#335F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F97
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F97#FFFFFF#000000##FFFFFF
##335F971.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466399
Deuteranopia (green-blind)
#385996
Tritanopia (blue-blind)
#006C74
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335f97;
/* rgb */ color: rgb(51, 95, 151);
/* oklch */ color: oklch(48.2% 0.103 255.4);
Tailwind
colors: {
  custom: {
    50: '#758cb6',
    500: '#335f97',
    950: '#000000',
  },
}
SCSS
$custom: #335f97;
$custom-light: #758cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#335f97",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 213.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48157,
    "c": 0.10316,
    "h": 255.4
  },
  "luminance": 0.11123
}

Semantic roles & 50–950 ramp

primary
#335F97
secondary
#B8976D
accent
#9C4FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #335F97

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

Preview Lab → · Contrast checker → · Palette generator →

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