#338EA3#338EA3

#338EA3 is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.2% C 0.090 H 216.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#338EA3
RGBrgb(51, 142, 163)
HSLhsl(191, 52%, 42%)
HSVhsv(191, 69%, 64%)
CMYKcmyk(68.7%, 12.9%, 0%, 36.1%)
CIE-LABlab(54.75, -19.73, -18.94)
CIE-LCHlch(54.75, 27.35, 223.82°)
OKLaboklab(60.21% -0.0723 -0.0527)
OKLCHoklch(60.21% 0.09 216.1)
XYZxyz(17.6464, 22.6922, 38.0933)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA3 #A34833
analogous
#33A380 #338EA3 #3356A3
triadic
#338EA3 #A3338E #8EA333
tetradic
#338EA3 #8033A3 #A34833 #56A333
square
#338EA3 #8033A3 #A34833 #56A333
split-complementary
#338EA3 #A33356 #A38033
monochromatic
#163D46 #246574 #338EA3 #4CB0C7 #7BC5D6

Accessibility & contrast

On white

3.79
#338EA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#338EA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA3
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA3#FFFFFF#000000##000000
##338EA31.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#808AA4
Deuteranopia (green-blind)
#707EA3
Tritanopia (blue-blind)
#009695
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea3;
/* rgb */ color: rgb(51, 142, 163);
/* oklch */ color: oklch(60.2% 0.090 216.1);
Tailwind
colors: {
  custom: {
    50: '#79afbe',
    500: '#338ea3',
    950: '#000000',
  },
}
SCSS
$custom: #338ea3;
$custom-light: #79afbe;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea3",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 163
  },
  "hsl": {
    "h": 191.25,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.60211,
    "c": 0.08951,
    "h": 216.1
  },
  "luminance": 0.22694
}

Semantic roles & 50–950 ramp

primary
#338EA3
secondary
#BE8273
accent
#674CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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