#338FAF#338FAF

#338FAF is a mid, moderate cyan. Relative luminance 0.234; OKLCH L 61.0% C 0.097 H 225.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#338FAF
RGBrgb(51, 143, 175)
HSLhsl(195, 55%, 44%)
HSVhsv(195, 71%, 69%)
CMYKcmyk(70.9%, 18.3%, 0%, 31.4%)
CIE-LABlab(55.52, -16.34, -24.63)
CIE-LCHlch(55.52, 29.56, 236.44°)
OKLaboklab(60.98% -0.0686 -0.0689)
OKLCHoklch(60.98% 0.097 225.1)
XYZxyz(18.9224, 23.4417, 44.0766)
Luminance0.2344 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FAF #AF5333
analogous
#33AF91 #338FAF #3351AF
triadic
#338FAF #AF338F #8FAF33
tetradic
#338FAF #9133AF #AF5333 #51AF33
square
#338FAF #9133AF #AF5333 #51AF33
split-complementary
#338FAF #AF3351 #AF9133
monochromatic
#174250 #256880 #338FAF #52ADCD #82C4DB

Accessibility & contrast

On white

3.69
#338FAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#338FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FAF
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FAF#FFFFFF#000000##000000
##338FAF1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D8CB1
Deuteranopia (green-blind)
#6C80AF
Tritanopia (blue-blind)
#009999
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338faf;
/* rgb */ color: rgb(51, 143, 175);
/* oklch */ color: oklch(61.0% 0.097 225.1);
Tailwind
colors: {
  custom: {
    50: '#7bb0c7',
    500: '#338faf',
    950: '#000000',
  },
}
SCSS
$custom: #338faf;
$custom-light: #7bb0c7;
$custom-dark: #000000;
JSON
{
  "hex": "#338faf",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 175
  },
  "hsl": {
    "h": 195.484,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.60983,
    "c": 0.09725,
    "h": 225.1
  },
  "luminance": 0.23444
}

Semantic roles & 50–950 ramp

primary
#338FAF
secondary
#C48D7A
accent
#704ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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