#338FA5#338FA5

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

Color values

HEX#338FA5
RGBrgb(51, 143, 165)
HSLhsl(192, 53%, 42%)
HSVhsv(192, 69%, 65%)
CMYKcmyk(69.1%, 13.3%, 0%, 35.3%)
CIE-LABlab(55.14, -19.62, -19.50)
CIE-LCHlch(55.14, 27.66, 224.82°)
OKLaboklab(60.54% -0.0726 -0.0543)
OKLCHoklch(60.54% 0.091 216.8)
XYZxyz(17.9764, 23.0633, 39.0943)
Luminance0.2306 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA5 #A54933
analogous
#33A582 #338FA5 #3356A5
triadic
#338FA5 #A5338F #8FA533
tetradic
#338FA5 #8233A5 #A54933 #56A533
square
#338FA5 #8233A5 #A54933 #56A533
split-complementary
#338FA5 #A53356 #A58233
monochromatic
#163E48 #256676 #338FA5 #4DB0C8 #7CC5D6

Accessibility & contrast

On white

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

On black

5.61
#338FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA5#FFFFFF#000000##000000
##338FA51.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338fa5;
/* rgb */ color: rgb(51, 143, 165);
/* oklch */ color: oklch(60.5% 0.091 216.8);
Tailwind
colors: {
  custom: {
    50: '#7ab0bf',
    500: '#338fa5',
    950: '#000000',
  },
}
SCSS
$custom: #338fa5;
$custom-light: #7ab0bf;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa5",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 165
  },
  "hsl": {
    "h": 191.579,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.60544,
    "c": 0.09065,
    "h": 216.8
  },
  "luminance": 0.23065
}

Semantic roles & 50–950 ramp

primary
#338FA5
secondary
#BF8375
accent
#684CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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