#338DAF#338DAF

#338DAF is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.5% C 0.098 H 227.1°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#338DAF
RGBrgb(51, 141, 175)
HSLhsl(196, 55%, 44%)
HSVhsv(196, 71%, 69%)
CMYKcmyk(70.9%, 19.4%, 0%, 31.4%)
CIE-LABlab(54.91, -15.25, -25.57)
CIE-LCHlch(54.91, 29.77, 239.20°)
OKLaboklab(60.49% -0.0666 -0.0716)
OKLCHoklch(60.49% 0.098 227.1)
XYZxyz(18.6249, 22.8466, 43.9774)
Luminance0.2285 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DAF #AF5533
analogous
#33AF93 #338DAF #334FAF
triadic
#338DAF #AF338D #8DAF33
tetradic
#338DAF #9333AF #AF5533 #4FAF33
square
#338DAF #9333AF #AF5533 #4FAF33
split-complementary
#338DAF #AF334F #AF9333
monochromatic
#174150 #256780 #338DAF #52ABCD #82C2DB

Accessibility & contrast

On white

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

On black

5.57
#338DAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DAF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DAF#FFFFFF#000000##000000
##338DAF1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8AB1
Deuteranopia (green-blind)
#6A7EAF
Tritanopia (blue-blind)
#009798
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338daf;
/* rgb */ color: rgb(51, 141, 175);
/* oklch */ color: oklch(60.5% 0.098 227.1);
Tailwind
colors: {
  custom: {
    50: '#7baec7',
    500: '#338daf',
    950: '#000000',
  },
}
SCSS
$custom: #338daf;
$custom-light: #7baec7;
$custom-dark: #000000;
JSON
{
  "hex": "#338daf",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 175
  },
  "hsl": {
    "h": 196.452,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.60494,
    "c": 0.09778,
    "h": 227.1
  },
  "luminance": 0.22849
}

Semantic roles & 50–950 ramp

primary
#338DAF
secondary
#C48E7A
accent
#724ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #338DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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