#338AAF#338AAF

#338AAF is a mid, moderate cyan. Relative luminance 0.220; OKLCH L 59.8% C 0.099 H 230.0°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#338AAF
RGBrgb(51, 138, 175)
HSLhsl(198, 55%, 44%)
HSVhsv(198, 71%, 69%)
CMYKcmyk(70.9%, 21.1%, 0%, 31.4%)
CIE-LABlab(54.00, -13.59, -26.99)
CIE-LCHlch(54.00, 30.22, 243.27°)
OKLaboklab(59.76% -0.0635 -0.0757)
OKLCHoklch(59.76% 0.099 230)
XYZxyz(18.1885, 21.9739, 43.8319)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AAF #AF5833
analogous
#33AF96 #338AAF #334CAF
triadic
#338AAF #AF338A #8AAF33
tetradic
#338AAF #9633AF #AF5833 #4CAF33
square
#338AAF #9633AF #AF5833 #4CAF33
split-complementary
#338AAF #AF334C #AF9633
monochromatic
#173F50 #256580 #338AAF #52A8CD #82C0DB

Accessibility & contrast

On white

3.89
#338AAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#338AAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AAF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AAF#FFFFFF#000000##000000
##338AAF1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7788B1
Deuteranopia (green-blind)
#667CAE
Tritanopia (blue-blind)
#009496
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338aaf;
/* rgb */ color: rgb(51, 138, 175);
/* oklch */ color: oklch(59.8% 0.099 230.0);
Tailwind
colors: {
  custom: {
    50: '#7bacc7',
    500: '#338aaf',
    950: '#000000',
  },
}
SCSS
$custom: #338aaf;
$custom-light: #7bacc7;
$custom-dark: #000000;
JSON
{
  "hex": "#338aaf",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 175
  },
  "hsl": {
    "h": 197.903,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.59764,
    "c": 0.09879,
    "h": 230
  },
  "luminance": 0.21976
}

Semantic roles & 50–950 ramp

primary
#338AAF
secondary
#C4907A
accent
#764ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #338AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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