#338CA4#338CA4

#338CA4 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.8% C 0.090 H 219.2°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#338CA4
RGBrgb(51, 140, 164)
HSLhsl(193, 53%, 42%)
HSVhsv(193, 69%, 64%)
CMYKcmyk(68.9%, 14.6%, 0%, 35.7%)
CIE-LABlab(54.17, -18.34, -20.40)
CIE-LCHlch(54.17, 27.43, 228.04°)
OKLaboklab(59.76% -0.0698 -0.0569)
OKLCHoklch(59.76% 0.09 219.2)
XYZxyz(17.4414, 22.1384, 38.4687)
Luminance0.2214 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA4 #A44B33
analogous
#33A483 #338CA4 #3354A4
triadic
#338CA4 #A4338C #8CA433
tetradic
#338CA4 #8333A4 #A44B33 #54A433
square
#338CA4 #8333A4 #A44B33 #54A433
split-complementary
#338CA4 #A43354 #A48333
monochromatic
#163C47 #246475 #338CA4 #4DADC8 #7BC3D6

Accessibility & contrast

On white

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

On black

5.43
#338CA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA4#FFFFFF#000000##000000
##338CA41.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D88A5
Deuteranopia (green-blind)
#6D7CA4
Tritanopia (blue-blind)
#009494
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ca4;
/* rgb */ color: rgb(51, 140, 164);
/* oklch */ color: oklch(59.8% 0.090 219.2);
Tailwind
colors: {
  custom: {
    50: '#79adbf',
    500: '#338ca4',
    950: '#000000',
  },
}
SCSS
$custom: #338ca4;
$custom-light: #79adbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca4",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 164
  },
  "hsl": {
    "h": 192.743,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.59758,
    "c": 0.09005,
    "h": 219.2
  },
  "luminance": 0.2214
}

Semantic roles & 50–950 ramp

primary
#338CA4
secondary
#BF8474
accent
#6A4CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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