#338EA8#338EA8

#338EA8 is a mid, moderate cyan. Relative luminance 0.229; OKLCH L 60.4% C 0.092 H 220.5°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#338EA8
RGBrgb(51, 142, 168)
HSLhsl(193, 53%, 43%)
HSVhsv(193, 70%, 66%)
CMYKcmyk(69.6%, 15.5%, 0%, 34.1%)
CIE-LABlab(54.94, -18.11, -21.52)
CIE-LCHlch(54.94, 28.12, 229.91°)
OKLaboklab(60.43% -0.0703 -0.06)
OKLCHoklch(60.43% 0.092 220.5)
XYZxyz(18.1032, 22.8749, 40.4994)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA8 #A84D33
analogous
#33A887 #338EA8 #3354A8
triadic
#338EA8 #A8338E #8EA833
tetradic
#338EA8 #8733A8 #A84D33 #54A833
square
#338EA8 #8733A8 #A84D33 #54A833
split-complementary
#338EA8 #A83354 #A88733
monochromatic
#163F4A #256679 #338EA8 #4FAEC9 #7EC4D8

Accessibility & contrast

On white

3.77
#338EA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#338EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA8#FFFFFF#000000##000000
##338EA81.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8AA9
Deuteranopia (green-blind)
#6E7EA8
Tritanopia (blue-blind)
#009696
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea8;
/* rgb */ color: rgb(51, 142, 168);
/* oklch */ color: oklch(60.4% 0.092 220.5);
Tailwind
colors: {
  custom: {
    50: '#7aafc2',
    500: '#338ea8',
    950: '#000000',
  },
}
SCSS
$custom: #338ea8;
$custom-light: #7aafc2;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea8",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 168
  },
  "hsl": {
    "h": 193.333,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.60426,
    "c": 0.09246,
    "h": 220.5
  },
  "luminance": 0.22877
}

Semantic roles & 50–950 ramp

primary
#338EA8
secondary
#C18776
accent
#6B4BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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