#337998#337998

#337998 is a mid, moderate cyan. Relative luminance 0.166; OKLCH L 54.5% C 0.085 H 230.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#337998
RGBrgb(51, 121, 152)
HSLhsl(198, 50%, 40%)
HSVhsv(198, 66%, 60%)
CMYKcmyk(66.4%, 20.4%, 0%, 40.4%)
CIE-LABlab(47.81, -11.81, -23.21)
CIE-LCHlch(47.81, 26.04, 243.03°)
OKLaboklab(54.51% -0.0541 -0.0649)
OKLCHoklch(54.51% 0.085 230.2)
XYZxyz(13.8679, 16.6441, 32.1815)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337998 #985233
analogous
#339885 #337998 #334698
triadic
#337998 #983379 #799833
tetradic
#337998 #853398 #985233 #469833
square
#337998 #853398 #985233 #469833
split-complementary
#337998 #983346 #988533
monochromatic
#14303C #24556A #337998 #479CC1 #75B4D1

Accessibility & contrast

On white

4.85
#337998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#337998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337998
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337998#FFFFFF#000000##FFFFFF
##3379981.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#69779A
Deuteranopia (green-blind)
#5B6D98
Tritanopia (blue-blind)
#008283
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #337998;
/* rgb */ color: rgb(51, 121, 152);
/* oklch */ color: oklch(54.5% 0.085 230.2);
Tailwind
colors: {
  custom: {
    50: '#769fb6',
    500: '#337998',
    950: '#000000',
  },
}
SCSS
$custom: #337998;
$custom-light: #769fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#337998",
  "rgb": {
    "r": 51,
    "g": 121,
    "b": 152
  },
  "hsl": {
    "h": 198.416,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54507,
    "c": 0.08453,
    "h": 230.2
  },
  "luminance": 0.16646
}

Semantic roles & 50–950 ramp

primary
#337998
secondary
#B9856E
accent
#794FD9
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #337998

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

Preview Lab → · Contrast checker → · Palette generator →

#337998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva