#338FA7#338FA7

#338FA7 is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 60.6% C 0.092 H 218.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#338FA7
RGBrgb(51, 143, 167)
HSLhsl(192, 53%, 43%)
HSVhsv(192, 69%, 65%)
CMYKcmyk(69.5%, 14.4%, 0%, 34.5%)
CIE-LABlab(55.21, -18.97, -20.53)
CIE-LCHlch(55.21, 27.95, 227.26°)
OKLaboklab(60.63% -0.0718 -0.0572)
OKLCHoklch(60.63% 0.092 218.6)
XYZxyz(18.1599, 23.1367, 40.0605)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA7 #A74B33
analogous
#33A785 #338FA7 #3355A7
triadic
#338FA7 #A7338F #8FA733
tetradic
#338FA7 #8533A7 #A74B33 #55A733
square
#338FA7 #8533A7 #A74B33 #55A733
split-complementary
#338FA7 #A73355 #A78533
monochromatic
#163F49 #256778 #338FA7 #4EB0C9 #7DC5D7

Accessibility & contrast

On white

3.73
#338FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#338FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA7
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA7#FFFFFF#000000##000000
##338FA71.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#808BA8
Deuteranopia (green-blind)
#6F7FA7
Tritanopia (blue-blind)
#009797
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338fa7;
/* rgb */ color: rgb(51, 143, 167);
/* oklch */ color: oklch(60.6% 0.092 218.6);
Tailwind
colors: {
  custom: {
    50: '#7ab0c1',
    500: '#338fa7',
    950: '#000000',
  },
}
SCSS
$custom: #338fa7;
$custom-light: #7ab0c1;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa7",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 167
  },
  "hsl": {
    "h": 192.414,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.6063,
    "c": 0.09179,
    "h": 218.6
  },
  "luminance": 0.23139
}

Semantic roles & 50–950 ramp

primary
#338FA7
secondary
#C08576
accent
#694BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA7

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

Preview Lab → · Contrast checker → · Palette generator →

#338FA7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva