#335B8B#335B8B

#335B8B is a mid, moderate cyan. Relative luminance 0.101; OKLCH L 46.5% C 0.091 H 254.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#335B8B
RGBrgb(51, 91, 139)
HSLhsl(213, 46%, 37%)
HSVhsv(213, 63%, 55%)
CMYKcmyk(63.3%, 34.5%, 0%, 45.5%)
CIE-LABlab(37.93, 1.72, -30.85)
CIE-LCHlch(37.93, 30.90, 273.19°)
OKLaboklab(46.5% -0.0249 -0.0873)
OKLCHoklch(46.5% 0.091 254.1)
XYZxyz(9.7648, 10.0492, 25.8462)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B8B #8B6333
analogous
#33878B #335B8B #37338B
triadic
#335B8B #8B335B #5B8B33
tetradic
#335B8B #8B3387 #8B6333 #338B37
square
#335B8B #8B3387 #8B6333 #338B37
split-complementary
#335B8B #8B3733 #878B33
monochromatic
#122031 #233E5E #335B8B #4378B8 #6E98CA

Accessibility & contrast

On white

6.98
#335B8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#335B8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B8B
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B8B#FFFFFF#000000##FFFFFF
##335B8B1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475E8D
Deuteranopia (green-blind)
#3B558A
Tritanopia (blue-blind)
#00666C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335b8b;
/* rgb */ color: rgb(51, 91, 139);
/* oklch */ color: oklch(46.5% 0.091 254.1);
Tailwind
colors: {
  custom: {
    50: '#7389ad',
    500: '#335b8b',
    950: '#000000',
  },
}
SCSS
$custom: #335b8b;
$custom-light: #7389ad;
$custom-dark: #000000;
JSON
{
  "hex": "#335b8b",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 139
  },
  "hsl": {
    "h": 212.727,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46499,
    "c": 0.09076,
    "h": 254.1
  },
  "luminance": 0.1005
}

Semantic roles & 50–950 ramp

primary
#335B8B
secondary
#B29068
accent
#9A52D6
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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