#335D8A#335D8A

#335D8A is a mid, moderate cyan. Relative luminance 0.104; OKLCH L 46.9% C 0.087 H 251.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#335D8A
RGBrgb(51, 93, 138)
HSLhsl(211, 46%, 37%)
HSVhsv(211, 63%, 54%)
CMYKcmyk(63%, 32.6%, 0%, 45.9%)
CIE-LABlab(38.49, 0.10, -29.36)
CIE-LCHlch(38.49, 29.36, 270.19°)
OKLaboklab(46.92% -0.0275 -0.0829)
OKLCHoklch(46.92% 0.087 251.6)
XYZxyz(9.8654, 10.3666, 25.5209)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D8A #8A6033
analogous
#33898A #335D8A #34338A
triadic
#335D8A #8A335D #5D8A33
tetradic
#335D8A #8A3389 #8A6033 #338A34
square
#335D8A #8A3389 #8A6033 #338A34
split-complementary
#335D8A #8A3433 #898A33
monochromatic
#122131 #223F5D #335D8A #447BB7 #6E9AC9

Accessibility & contrast

On white

6.83
#335D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#335D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D8A
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D8A#FFFFFF#000000##FFFFFF
##335D8A1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5F8C
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#00676D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335d8a;
/* rgb */ color: rgb(51, 93, 138);
/* oklch */ color: oklch(46.9% 0.087 251.6);
Tailwind
colors: {
  custom: {
    50: '#738aac',
    500: '#335d8a',
    950: '#000000',
  },
}
SCSS
$custom: #335d8a;
$custom-light: #738aac;
$custom-dark: #000000;
JSON
{
  "hex": "#335d8a",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 138
  },
  "hsl": {
    "h": 211.034,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46922,
    "c": 0.08736,
    "h": 251.6
  },
  "luminance": 0.10367
}

Semantic roles & 50–950 ramp

primary
#335D8A
secondary
#B18E67
accent
#9652D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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