#335E7B#335E7B

#335E7B is a mid, moderate cyan. Relative luminance 0.101; OKLCH L 46.4% C 0.067 H 239.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#335E7B
RGBrgb(51, 94, 123)
HSLhsl(204, 41%, 34%)
HSVhsv(204, 59%, 48%)
CMYKcmyk(58.5%, 23.6%, 0%, 51.8%)
CIE-LABlab(38.09, -5.74, -20.85)
CIE-LCHlch(38.09, 21.62, 254.60°)
OKLaboklab(46.37% -0.0338 -0.0583)
OKLCHoklch(46.37% 0.067 239.9)
XYZxyz(8.9418, 10.1385, 20.2208)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E7B #7B5033
analogous
#337B74 #335E7B #333A7B
triadic
#335E7B #7B335E #5E7B33
tetradic
#335E7B #74337B #7B5033 #3A7B33
square
#335E7B #74337B #7B5033 #3A7B33
split-complementary
#335E7B #7B333A #7B7433
monochromatic
#0F1C24 #213D50 #335E7B #457FA6 #689DC0

Accessibility & contrast

On white

6.94
#335E7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#335E7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E7B
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E7B#FFFFFF#000000##FFFFFF
##335E7B1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515E7C
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#006568
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335e7b;
/* rgb */ color: rgb(51, 94, 123);
/* oklch */ color: oklch(46.4% 0.067 239.9);
Tailwind
colors: {
  custom: {
    50: '#718ba1',
    500: '#335e7b',
    950: '#000000',
  },
}
SCSS
$custom: #335e7b;
$custom-light: #718ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#335e7b",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 123
  },
  "hsl": {
    "h": 204.167,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4637,
    "c": 0.06738,
    "h": 239.9
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#335E7B
secondary
#A87E62
accent
#8857D1
background
#F7F8F9
surface
#EDF0F2
border
#C8CBCC
text
#080C0F
muted
#7B7D7E

Preview Lab

Preview with #335E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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