#338FB7#338FB7

#338FB7 is a mid, moderate cyan. Relative luminance 0.238; OKLCH L 61.4% C 0.104 H 230.8°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#338FB7
RGBrgb(51, 143, 183)
HSLhsl(198, 56%, 46%)
HSVhsv(198, 72%, 72%)
CMYKcmyk(72.1%, 21.9%, 0%, 28.2%)
CIE-LABlab(55.85, -13.65, -28.69)
CIE-LCHlch(55.85, 31.77, 244.56°)
OKLaboklab(61.35% -0.0656 -0.0806)
OKLCHoklch(61.35% 0.104 230.8)
XYZxyz(19.7315, 23.7654, 48.3378)
Luminance0.2377 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB7 #B75B33
analogous
#33B79D #338FB7 #334DB7
triadic
#338FB7 #B7338F #8FB733
tetradic
#338FB7 #9D33B7 #B75B33 #4DB733
square
#338FB7 #9D33B7 #B75B33 #4DB733
split-complementary
#338FB7 #B7334D #B79D33
monochromatic
#184457 #266A87 #338FB7 #57ABD0 #87C3DE

Accessibility & contrast

On white

3.65
#338FB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#338FB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB7#FFFFFF#000000##000000
##338FB71.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8DB9
Deuteranopia (green-blind)
#6980B6
Tritanopia (blue-blind)
#009A9C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338fb7;
/* rgb */ color: rgb(51, 143, 183);
/* oklch */ color: oklch(61.4% 0.104 230.8);
Tailwind
colors: {
  custom: {
    50: '#7cafcc',
    500: '#338fb7',
    950: '#000000',
  },
}
SCSS
$custom: #338fb7;
$custom-light: #7cafcc;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb7",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 183
  },
  "hsl": {
    "h": 198.182,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.61353,
    "c": 0.1039,
    "h": 230.8
  },
  "luminance": 0.23768
}

Semantic roles & 50–950 ramp

primary
#338FB7
secondary
#C7957F
accent
#7648E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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