#338EA9#338EA9

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

Color values

HEX#338EA9
RGBrgb(51, 142, 169)
HSLhsl(194, 54%, 43%)
HSVhsv(194, 70%, 66%)
CMYKcmyk(69.8%, 16%, 0%, 33.7%)
CIE-LABlab(54.98, -17.78, -22.03)
CIE-LCHlch(54.98, 28.31, 231.09°)
OKLaboklab(60.47% -0.0699 -0.0615)
OKLCHoklch(60.47% 0.093 221.3)
XYZxyz(18.1967, 22.9123, 40.9919)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA9 #A94E33
analogous
#33A989 #338EA9 #3353A9
triadic
#338EA9 #A9338E #8EA933
tetradic
#338EA9 #8933A9 #A94E33 #53A933
square
#338EA9 #8933A9 #A94E33 #53A933
split-complementary
#338EA9 #A93353 #A98933
monochromatic
#173F4B #25667A #338EA9 #4FAECA #7EC4D8

Accessibility & contrast

On white

3.76
#338EA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338EA9#FFFFFF#000000##000000
##338EA91.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8AAA
Deuteranopia (green-blind)
#6E7EA9
Tritanopia (blue-blind)
#009797
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338ea9;
/* rgb */ color: rgb(51, 142, 169);
/* oklch */ color: oklch(60.5% 0.093 221.3);
Tailwind
colors: {
  custom: {
    50: '#7aafc2',
    500: '#338ea9',
    950: '#000000',
  },
}
SCSS
$custom: #338ea9;
$custom-light: #7aafc2;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea9",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 169
  },
  "hsl": {
    "h": 193.729,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.6047,
    "c": 0.09312,
    "h": 221.3
  },
  "luminance": 0.22914
}

Semantic roles & 50–950 ramp

primary
#338EA9
secondary
#C18877
accent
#6C4BDD
background
#F8FAFB
surface
#EFF4F7
border
#CACED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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