#338CA3#338CA3

#338CA3 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.7% C 0.089 H 218.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#338CA3
RGBrgb(51, 140, 163)
HSLhsl(192, 52%, 42%)
HSVhsv(192, 69%, 64%)
CMYKcmyk(68.7%, 14.1%, 0%, 36.1%)
CIE-LABlab(54.14, -18.67, -19.88)
CIE-LCHlch(54.14, 27.27, 226.81°)
OKLaboklab(59.72% -0.0702 -0.0554)
OKLCHoklch(59.72% 0.089 218.3)
XYZxyz(17.3515, 22.1024, 37.9950)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA3 #A34A33
analogous
#33A382 #338CA3 #3354A3
triadic
#338CA3 #A3338C #8CA333
tetradic
#338CA3 #8233A3 #A34A33 #54A333
square
#338CA3 #8233A3 #A34A33 #54A333
split-complementary
#338CA3 #A33354 #A38233
monochromatic
#163C46 #246474 #338CA3 #4CAEC7 #7BC3D6

Accessibility & contrast

On white

3.87
#338CA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#338CA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA3
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA3#FFFFFF#000000##000000
##338CA31.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D88A4
Deuteranopia (green-blind)
#6D7CA3
Tritanopia (blue-blind)
#009493
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ca3;
/* rgb */ color: rgb(51, 140, 163);
/* oklch */ color: oklch(59.7% 0.089 218.3);
Tailwind
colors: {
  custom: {
    50: '#79adbe',
    500: '#338ca3',
    950: '#000000',
  },
}
SCSS
$custom: #338ca3;
$custom-light: #79adbe;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca3",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 163
  },
  "hsl": {
    "h": 192.321,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.59715,
    "c": 0.08945,
    "h": 218.3
  },
  "luminance": 0.22104
}

Semantic roles & 50–950 ramp

primary
#338CA3
secondary
#BE8373
accent
#6A4CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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