#335F8B#335F8B

#335F8B is a mid, moderate cyan. Relative luminance 0.108; OKLCH L 47.5% C 0.087 H 250.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#335F8B
RGBrgb(51, 95, 139)
HSLhsl(210, 46%, 37%)
HSVhsv(210, 63%, 55%)
CMYKcmyk(63.3%, 31.7%, 0%, 45.5%)
CIE-LABlab(39.16, -0.80, -28.92)
CIE-LCHlch(39.16, 28.93, 268.41°)
OKLaboklab(47.46% -0.0295 -0.0816)
OKLCHoklch(47.46% 0.087 250.1)
XYZxyz(10.1159, 10.7514, 25.9632)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F8B #8B5F33
analogous
#338B8B #335F8B #33338B
triadic
#335F8B #8B335F #5F8B33
tetradic
#335F8B #8B338B #8B5F33 #338B33
square
#335F8B #8B338B #8B5F33 #338B33
split-complementary
#335F8B #8B3333 #8B8B33
monochromatic
#122231 #23405E #335F8B #437EB8 #6E9CCA

Accessibility & contrast

On white

6.67
#335F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#335F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F8B
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F8B#FFFFFF#000000##FFFFFF
##335F8B1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C618D
Deuteranopia (green-blind)
#40588A
Tritanopia (blue-blind)
#00696F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335f8b;
/* rgb */ color: rgb(51, 95, 139);
/* oklch */ color: oklch(47.5% 0.087 250.1);
Tailwind
colors: {
  custom: {
    50: '#738cad',
    500: '#335f8b',
    950: '#000000',
  },
}
SCSS
$custom: #335f8b;
$custom-light: #738cad;
$custom-dark: #000000;
JSON
{
  "hex": "#335f8b",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 210,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47462,
    "c": 0.08679,
    "h": 250.1
  },
  "luminance": 0.10752
}

Semantic roles & 50–950 ramp

primary
#335F8B
secondary
#B28D68
accent
#9452D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #335F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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