#338BAF#338BAF

#338BAF is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 60.0% C 0.098 H 229.1°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#338BAF
RGBrgb(51, 139, 175)
HSLhsl(197, 55%, 44%)
HSVhsv(197, 71%, 69%)
CMYKcmyk(70.9%, 20.6%, 0%, 31.4%)
CIE-LABlab(54.30, -14.14, -26.52)
CIE-LCHlch(54.30, 30.05, 241.92°)
OKLaboklab(60.01% -0.0645 -0.0743)
OKLCHoklch(60.01% 0.098 229.1)
XYZxyz(18.3326, 22.2621, 43.8800)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BAF #AF5733
analogous
#33AF95 #338BAF #334DAF
triadic
#338BAF #AF338B #8BAF33
tetradic
#338BAF #9533AF #AF5733 #4DAF33
square
#338BAF #9533AF #AF5733 #4DAF33
split-complementary
#338BAF #AF334D #AF9533
monochromatic
#174050 #256580 #338BAF #52A9CD #82C1DB

Accessibility & contrast

On white

3.85
#338BAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#338BAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BAF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BAF#FFFFFF#000000##000000
##338BAF1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7889B1
Deuteranopia (green-blind)
#677CAF
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338baf;
/* rgb */ color: rgb(51, 139, 175);
/* oklch */ color: oklch(60.0% 0.098 229.1);
Tailwind
colors: {
  custom: {
    50: '#7badc7',
    500: '#338baf',
    950: '#000000',
  },
}
SCSS
$custom: #338baf;
$custom-light: #7badc7;
$custom-dark: #000000;
JSON
{
  "hex": "#338baf",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 175
  },
  "hsl": {
    "h": 197.419,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.60007,
    "c": 0.09842,
    "h": 229.1
  },
  "luminance": 0.22264
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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