#335F8A#335F8A

#335F8A is a mid, moderate cyan. Relative luminance 0.107; OKLCH L 47.4% C 0.085 H 249.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#335F8A
RGBrgb(51, 95, 138)
HSLhsl(210, 46%, 37%)
HSVhsv(210, 63%, 54%)
CMYKcmyk(63%, 31.2%, 0%, 45.9%)
CIE-LABlab(39.11, -1.16, -28.39)
CIE-LCHlch(39.11, 28.42, 267.67°)
OKLaboklab(47.41% -0.0298 -0.0801)
OKLCHoklch(47.41% 0.085 249.6)
XYZxyz(10.0432, 10.7223, 25.5802)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F8A #8A5E33
analogous
#338A8A #335F8A #33348A
triadic
#335F8A #8A335F #5F8A33
tetradic
#335F8A #8A338A #8A5E33 #348A33
square
#335F8A #8A338A #8A5E33 #348A33
split-complementary
#335F8A #8A3334 #8A8A33
monochromatic
#122131 #22405D #335F8A #447EB7 #6E9CC9

Accessibility & contrast

On white

6.68
#335F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#335F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F8A
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F8A#FFFFFF#000000##FFFFFF
##335F8A1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D618C
Deuteranopia (green-blind)
#415889
Tritanopia (blue-blind)
#00696E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335f8a;
/* rgb */ color: rgb(51, 95, 138);
/* oklch */ color: oklch(47.4% 0.085 249.6);
Tailwind
colors: {
  custom: {
    50: '#738cac',
    500: '#335f8a',
    950: '#000000',
  },
}
SCSS
$custom: #335f8a;
$custom-light: #738cac;
$custom-dark: #000000;
JSON
{
  "hex": "#335f8a",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 209.655,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47406,
    "c": 0.08545,
    "h": 249.6
  },
  "luminance": 0.10723
}

Semantic roles & 50–950 ramp

primary
#335F8A
secondary
#B18C67
accent
#9352D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #335F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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