#338798#338798

#338798 is a mid, moderate cyan. Relative luminance 0.203; OKLCH L 58.0% C 0.083 H 213.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#338798
RGBrgb(51, 135, 152)
HSLhsl(190, 50%, 40%)
HSVhsv(190, 66%, 60%)
CMYKcmyk(66.4%, 11.2%, 0%, 40.4%)
CIE-LABlab(52.17, -19.53, -16.52)
CIE-LCHlch(52.17, 25.58, 220.22°)
OKLaboklab(58% -0.0694 -0.0459)
OKLCHoklch(58% 0.083 213.5)
XYZxyz(15.6944, 20.2970, 32.7903)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338798 #984433
analogous
#339877 #338798 #335598
triadic
#338798 #983387 #879833
tetradic
#338798 #773398 #984433 #559833
square
#338798 #773398 #984433 #559833
split-complementary
#338798 #983355 #987733
monochromatic
#14363C #245E6A #338798 #47ADC1 #75C1D1

Accessibility & contrast

On white

4.15
#338798 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#338798 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338798
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338798#FFFFFF#000000##000000
##3387981.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8399
Deuteranopia (green-blind)
#6C7898
Tritanopia (blue-blind)
#008E8C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338798;
/* rgb */ color: rgb(51, 135, 152);
/* oklch */ color: oklch(58.0% 0.083 213.5);
Tailwind
colors: {
  custom: {
    50: '#77aab6',
    500: '#338798',
    950: '#000000',
  },
}
SCSS
$custom: #338798;
$custom-light: #77aab6;
$custom-dark: #000000;
JSON
{
  "hex": "#338798",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 152
  },
  "hsl": {
    "h": 190.099,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.58001,
    "c": 0.08322,
    "h": 213.5
  },
  "luminance": 0.20299
}

Semantic roles & 50–950 ramp

primary
#338798
secondary
#B97B6E
accent
#664FD9
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338798

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

Preview Lab → · Contrast checker → · Palette generator →

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