#338FA6#338FA6

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

Color values

HEX#338FA6
RGBrgb(51, 143, 166)
HSLhsl(192, 53%, 43%)
HSVhsv(192, 69%, 65%)
CMYKcmyk(69.3%, 13.9%, 0%, 34.9%)
CIE-LABlab(55.18, -19.30, -20.02)
CIE-LCHlch(55.18, 27.80, 226.05°)
OKLaboklab(60.59% -0.0722 -0.0558)
OKLCHoklch(60.59% 0.091 217.7)
XYZxyz(18.0678, 23.0999, 39.5755)
Luminance0.2310 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA6 #A64A33
analogous
#33A683 #338FA6 #3356A6
triadic
#338FA6 #A6338F #8FA633
tetradic
#338FA6 #8333A6 #A64A33 #56A633
square
#338FA6 #8333A6 #A64A33 #56A633
split-complementary
#338FA6 #A63356 #A68333
monochromatic
#163E48 #256777 #338FA6 #4EB0C9 #7CC5D7

Accessibility & contrast

On white

3.74
#338FA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#338FA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA6#FFFFFF#000000##000000
##338FA61.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#808BA7
Deuteranopia (green-blind)
#707FA6
Tritanopia (blue-blind)
#009796
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338fa6;
/* rgb */ color: rgb(51, 143, 166);
/* oklch */ color: oklch(60.6% 0.091 217.7);
Tailwind
colors: {
  custom: {
    50: '#7ab0c0',
    500: '#338fa6',
    950: '#000000',
  },
}
SCSS
$custom: #338fa6;
$custom-light: #7ab0c0;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa6",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 166
  },
  "hsl": {
    "h": 192,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.09121,
    "h": 217.7
  },
  "luminance": 0.23102
}

Semantic roles & 50–950 ramp

primary
#338FA6
secondary
#C08475
accent
#684BDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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