#338CA2#338CA2

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

Color values

HEX#338CA2
RGBrgb(51, 140, 162)
HSLhsl(192, 52%, 42%)
HSVhsv(192, 69%, 64%)
CMYKcmyk(68.5%, 13.6%, 0%, 36.5%)
CIE-LABlab(54.10, -18.99, -19.36)
CIE-LCHlch(54.10, 27.12, 225.56°)
OKLaboklab(59.67% -0.0706 -0.0539)
OKLCHoklch(59.67% 0.089 217.4)
XYZxyz(17.2622, 22.0667, 37.5250)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA2 #A24933
analogous
#33A281 #338CA2 #3355A2
triadic
#338CA2 #A2338C #8CA233
tetradic
#338CA2 #8133A2 #A24933 #55A233
square
#338CA2 #8133A2 #A24933 #55A233
split-complementary
#338CA2 #A23355 #A28133
monochromatic
#163C45 #246473 #338CA2 #4CAEC7 #7AC3D5

Accessibility & contrast

On white

3.88
#338CA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#338CA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA2#FFFFFF#000000##000000
##338CA21.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338ca2;
/* rgb */ color: rgb(51, 140, 162);
/* oklch */ color: oklch(59.7% 0.089 217.4);
Tailwind
colors: {
  custom: {
    50: '#79adbd',
    500: '#338ca2',
    950: '#000000',
  },
}
SCSS
$custom: #338ca2;
$custom-light: #79adbd;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca2",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 162
  },
  "hsl": {
    "h": 191.892,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.59672,
    "c": 0.08887,
    "h": 217.4
  },
  "luminance": 0.22069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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