#335F7B#335F7B

#335F7B is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.6% C 0.067 H 238.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#335F7B
RGBrgb(51, 95, 123)
HSLhsl(203, 41%, 34%)
HSVhsv(203, 59%, 48%)
CMYKcmyk(58.5%, 22.8%, 0%, 51.8%)
CIE-LABlab(38.41, -6.35, -20.36)
CIE-LCHlch(38.41, 21.33, 252.68°)
OKLaboklab(46.62% -0.035 -0.0569)
OKLCHoklch(46.62% 0.067 238.4)
XYZxyz(9.0313, 10.3175, 20.2506)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F7B #7B4F33
analogous
#337B73 #335F7B #333B7B
triadic
#335F7B #7B335F #5F7B33
tetradic
#335F7B #73337B #7B4F33 #3B7B33
square
#335F7B #73337B #7B4F33 #3B7B33
split-complementary
#335F7B #7B333B #7B7333
monochromatic
#0F1C24 #213E50 #335F7B #4580A6 #689EC0

Accessibility & contrast

On white

6.85
#335F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335F7B
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F7B#FFFFFF#000000##FFFFFF
##335F7B1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525F7C
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#006668
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335f7b;
/* rgb */ color: rgb(51, 95, 123);
/* oklch */ color: oklch(46.6% 0.067 238.4);
Tailwind
colors: {
  custom: {
    50: '#718ca1',
    500: '#335f7b',
    950: '#000000',
  },
}
SCSS
$custom: #335f7b;
$custom-light: #718ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#335f7b",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 123
  },
  "hsl": {
    "h": 203.333,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.0668,
    "h": 238.4
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#335F7B
secondary
#A87D62
accent
#8657D1
background
#F7F8F9
surface
#EDF0F2
border
#C8CBCC
text
#080C0F
muted
#7B7D7E

Preview Lab

Preview with #335F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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