#338CA8#338CA8

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

Color values

HEX#338CA8
RGBrgb(51, 140, 168)
HSLhsl(194, 53%, 43%)
HSVhsv(194, 70%, 66%)
CMYKcmyk(69.6%, 16.7%, 0%, 34.1%)
CIE-LABlab(54.33, -17.03, -22.46)
CIE-LCHlch(54.33, 28.19, 232.83°)
OKLaboklab(59.93% -0.0682 -0.0627)
OKLCHoklch(59.93% 0.093 222.6)
XYZxyz(17.8083, 22.2851, 40.4011)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA8 #A84F33
analogous
#33A889 #338CA8 #3351A8
triadic
#338CA8 #A8338C #8CA833
tetradic
#338CA8 #8933A8 #A84F33 #51A833
square
#338CA8 #8933A8 #A84F33 #51A833
split-complementary
#338CA8 #A83351 #A88933
monochromatic
#163E4A #256579 #338CA8 #4FACC9 #7EC2D8

Accessibility & contrast

On white

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

On black

5.46
#338CA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA8
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA8#FFFFFF#000000##000000
##338CA81.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338ca8;
/* rgb */ color: rgb(51, 140, 168);
/* oklch */ color: oklch(59.9% 0.093 222.6);
Tailwind
colors: {
  custom: {
    50: '#7aadc2',
    500: '#338ca8',
    950: '#000000',
  },
}
SCSS
$custom: #338ca8;
$custom-light: #7aadc2;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca8",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 168
  },
  "hsl": {
    "h": 194.359,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.59933,
    "c": 0.09268,
    "h": 222.6
  },
  "luminance": 0.22287
}

Semantic roles & 50–950 ramp

primary
#338CA8
secondary
#C18876
accent
#6E4BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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