#338CAF#338CAF

#338CAF is a mid, moderate cyan. Relative luminance 0.226; OKLCH L 60.3% C 0.098 H 228.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#338CAF
RGBrgb(51, 140, 175)
HSLhsl(197, 55%, 44%)
HSVhsv(197, 71%, 69%)
CMYKcmyk(70.9%, 20%, 0%, 31.4%)
CIE-LABlab(54.61, -14.70, -26.04)
CIE-LCHlch(54.61, 29.90, 240.56°)
OKLaboklab(60.25% -0.0655 -0.073)
OKLCHoklch(60.25% 0.098 228.1)
XYZxyz(18.4781, 22.5530, 43.9285)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CAF #AF5633
analogous
#33AF94 #338CAF #334EAF
triadic
#338CAF #AF338C #8CAF33
tetradic
#338CAF #9433AF #AF5633 #4EAF33
square
#338CAF #9433AF #AF5633 #4EAF33
split-complementary
#338CAF #AF334E #AF9433
monochromatic
#174050 #256680 #338CAF #52AACD #82C2DB

Accessibility & contrast

On white

3.81
#338CAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#338CAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CAF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CAF#FFFFFF#000000##000000
##338CAF1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8AB1
Deuteranopia (green-blind)
#697DAF
Tritanopia (blue-blind)
#009698
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338caf;
/* rgb */ color: rgb(51, 140, 175);
/* oklch */ color: oklch(60.3% 0.098 228.1);
Tailwind
colors: {
  custom: {
    50: '#7badc7',
    500: '#338caf',
    950: '#000000',
  },
}
SCSS
$custom: #338caf;
$custom-light: #7badc7;
$custom-dark: #000000;
JSON
{
  "hex": "#338caf",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 175
  },
  "hsl": {
    "h": 196.935,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.60251,
    "c": 0.09808,
    "h": 228.1
  },
  "luminance": 0.22555
}

Semantic roles & 50–950 ramp

primary
#338CAF
secondary
#C48F7A
accent
#744ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #338CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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