#335A8F#335A8F

#335A8F is a mid, moderate cyan. Relative luminance 0.100; OKLCH L 46.5% C 0.097 H 256.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#335A8F
RGBrgb(51, 90, 143)
HSLhsl(215, 47%, 38%)
HSVhsv(215, 64%, 56%)
CMYKcmyk(64.3%, 37.1%, 0%, 43.9%)
CIE-LABlab(37.84, 3.80, -33.42)
CIE-LCHlch(37.84, 33.63, 276.49°)
OKLaboklab(46.5% -0.0227 -0.0948)
OKLCHoklch(46.5% 0.097 256.5)
XYZxyz(9.9776, 9.9984, 27.3853)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A8F #8F6833
analogous
#33888F #335A8F #3A338F
triadic
#335A8F #8F335A #5A8F33
tetradic
#335A8F #8F3388 #8F6833 #338F3A
square
#335A8F #8F3388 #8F6833 #338F3A
split-complementary
#335A8F #8F3A33 #888F33
monochromatic
#132135 #233E62 #335A8F #4376BC #7097CC

Accessibility & contrast

On white

7.00
#335A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#335A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A8F
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A8F#FFFFFF#000000##FFFFFF
##335A8F1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435E91
Deuteranopia (green-blind)
#36558E
Tritanopia (blue-blind)
#00666D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335a8f;
/* rgb */ color: rgb(51, 90, 143);
/* oklch */ color: oklch(46.5% 0.097 256.5);
Tailwind
colors: {
  custom: {
    50: '#7488b0',
    500: '#335a8f',
    950: '#000000',
  },
}
SCSS
$custom: #335a8f;
$custom-light: #7488b0;
$custom-dark: #000000;
JSON
{
  "hex": "#335a8f",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 143
  },
  "hsl": {
    "h": 214.565,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46498,
    "c": 0.09746,
    "h": 256.5
  },
  "luminance": 0.09999
}

Semantic roles & 50–950 ramp

primary
#335A8F
secondary
#B4956A
accent
#9E51D7
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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