#338FA9#338FA9

#338FA9 is a mid, moderate cyan. Relative luminance 0.232; OKLCH L 60.7% C 0.093 H 220.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#338FA9
RGBrgb(51, 143, 169)
HSLhsl(193, 54%, 43%)
HSVhsv(193, 70%, 66%)
CMYKcmyk(69.8%, 15.4%, 0%, 33.7%)
CIE-LABlab(55.29, -18.32, -21.56)
CIE-LCHlch(55.29, 28.29, 229.64°)
OKLaboklab(60.72% -0.071 -0.0602)
OKLCHoklch(60.72% 0.093 220.3)
XYZxyz(18.3462, 23.2112, 41.0418)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA9 #A94D33
analogous
#33A988 #338FA9 #3354A9
triadic
#338FA9 #A9338F #8FA933
tetradic
#338FA9 #8833A9 #A94D33 #54A933
square
#338FA9 #8833A9 #A94D33 #54A933
split-complementary
#338FA9 #A93354 #A98833
monochromatic
#173F4B #25677A #338FA9 #4FAFCA #7EC4D8

Accessibility & contrast

On white

3.72
#338FA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#338FA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA9
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA9#FFFFFF#000000##000000
##338FA91.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338fa9;
/* rgb */ color: rgb(51, 143, 169);
/* oklch */ color: oklch(60.7% 0.093 220.3);
Tailwind
colors: {
  custom: {
    50: '#7ab0c2',
    500: '#338fa9',
    950: '#000000',
  },
}
SCSS
$custom: #338fa9;
$custom-light: #7ab0c2;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa9",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 169
  },
  "hsl": {
    "h": 193.22,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.09304,
    "h": 220.3
  },
  "luminance": 0.23213
}

Semantic roles & 50–950 ramp

primary
#338FA9
secondary
#C18777
accent
#6B4BDD
background
#F8FAFB
surface
#EFF4F7
border
#CACED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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