#336A9D#336A9D

#336A9D is a mid, moderate cyan. Relative luminance 0.134; OKLCH L 51.1% C 0.100 H 248.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#336A9D
RGBrgb(51, 106, 157)
HSLhsl(209, 51%, 41%)
HSVhsv(209, 68%, 62%)
CMYKcmyk(67.5%, 32.5%, 0%, 38.4%)
CIE-LABlab(43.43, -1.18, -32.99)
CIE-LCHlch(43.43, 33.01, 267.95°)
OKLaboklab(51.11% -0.0361 -0.0933)
OKLCHoklch(51.11% 0.1 248.8)
XYZxyz(12.6028, 13.4449, 33.8227)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A9D #9D6633
analogous
#339D9B #336A9D #33359D
triadic
#336A9D #9D336A #6A9D33
tetradic
#336A9D #9B339D #9D6633 #359D33
square
#336A9D #9B339D #9D6633 #359D33
split-complementary
#336A9D #9D3335 #9D9B33
monochromatic
#152C41 #244B6F #336A9D #4989C4 #77A7D3

Accessibility & contrast

On white

5.69
#336A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#336A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A9D
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A9D#FFFFFF#000000##FFFFFF
##336A9D1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546C9F
Deuteranopia (green-blind)
#45629C
Tritanopia (blue-blind)
#00767C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #336a9d;
/* rgb */ color: rgb(51, 106, 157);
/* oklch */ color: oklch(51.1% 0.100 248.8);
Tailwind
colors: {
  custom: {
    50: '#7694ba',
    500: '#336a9d',
    950: '#000000',
  },
}
SCSS
$custom: #336a9d;
$custom-light: #7694ba;
$custom-dark: #000000;
JSON
{
  "hex": "#336a9d",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 157
  },
  "hsl": {
    "h": 208.868,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.10009,
    "h": 248.8
  },
  "luminance": 0.13446
}

Semantic roles & 50–950 ramp

primary
#336A9D
secondary
#BB9470
accent
#914DDA
background
#F7F9FB
surface
#EEF1F6
border
#C9CBD0
text
#090D11
muted
#7B7E80

Preview Lab

Preview with #336A9D

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

Preview Lab → · Contrast checker → · Palette generator →

#336A9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva