#338EA6#338EA6

#338EA6 is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.3% C 0.091 H 218.8°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#338EA6
RGBrgb(51, 142, 166)
HSLhsl(193, 53%, 43%)
HSVhsv(193, 69%, 65%)
CMYKcmyk(69.3%, 14.5%, 0%, 34.9%)
CIE-LABlab(54.87, -18.76, -20.49)
CIE-LCHlch(54.87, 27.78, 227.51°)
OKLaboklab(60.34% -0.0711 -0.0571)
OKLCHoklch(60.34% 0.091 218.8)
XYZxyz(17.9183, 22.8010, 39.5257)
Luminance0.2280 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA6 #A64B33
analogous
#33A685 #338EA6 #3354A6
triadic
#338EA6 #A6338E #8EA633
tetradic
#338EA6 #8533A6 #A64B33 #54A633
square
#338EA6 #8533A6 #A64B33 #54A633
split-complementary
#338EA6 #A63354 #A68533
monochromatic
#163E48 #256677 #338EA6 #4EAFC9 #7CC4D7

Accessibility & contrast

On white

3.78
#338EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#338EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA6
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA6#FFFFFF#000000##000000
##338EA61.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8AA7
Deuteranopia (green-blind)
#6F7EA6
Tritanopia (blue-blind)
#009696
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea6;
/* rgb */ color: rgb(51, 142, 166);
/* oklch */ color: oklch(60.3% 0.091 218.8);
Tailwind
colors: {
  custom: {
    50: '#7aafc0',
    500: '#338ea6',
    950: '#000000',
  },
}
SCSS
$custom: #338ea6;
$custom-light: #7aafc0;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea6",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 166
  },
  "hsl": {
    "h": 192.522,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.60339,
    "c": 0.09121,
    "h": 218.8
  },
  "luminance": 0.22803
}

Semantic roles & 50–950 ramp

primary
#338EA6
secondary
#C08575
accent
#6A4BDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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