#338CA7#338CA7

#338CA7 is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 59.9% C 0.092 H 221.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#338CA7
RGBrgb(51, 140, 167)
HSLhsl(194, 53%, 43%)
HSVhsv(194, 69%, 65%)
CMYKcmyk(69.5%, 16.2%, 0%, 34.5%)
CIE-LABlab(54.29, -17.36, -21.95)
CIE-LCHlch(54.29, 27.98, 231.66°)
OKLaboklab(59.89% -0.0686 -0.0613)
OKLCHoklch(59.89% 0.092 221.8)
XYZxyz(17.7155, 22.2480, 39.9124)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA7 #A74E33
analogous
#33A788 #338CA7 #3352A7
triadic
#338CA7 #A7338C #8CA733
tetradic
#338CA7 #8833A7 #A74E33 #52A733
square
#338CA7 #8833A7 #A74E33 #52A733
split-complementary
#338CA7 #A73352 #A78833
monochromatic
#163D49 #256578 #338CA7 #4EACC9 #7DC2D7

Accessibility & contrast

On white

3.85
#338CA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#338CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA7#FFFFFF#000000##000000
##338CA71.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C89A8
Deuteranopia (green-blind)
#6C7DA7
Tritanopia (blue-blind)
#009595
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ca7;
/* rgb */ color: rgb(51, 140, 167);
/* oklch */ color: oklch(59.9% 0.092 221.8);
Tailwind
colors: {
  custom: {
    50: '#7aadc1',
    500: '#338ca7',
    950: '#000000',
  },
}
SCSS
$custom: #338ca7;
$custom-light: #7aadc1;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca7",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 167
  },
  "hsl": {
    "h": 193.966,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.59889,
    "c": 0.092,
    "h": 221.8
  },
  "luminance": 0.2225
}

Semantic roles & 50–950 ramp

primary
#338CA7
secondary
#C08776
accent
#6D4BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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