#338EB7#338EB7

#338EB7 is a mid, moderate cyan. Relative luminance 0.235; OKLCH L 61.1% C 0.104 H 231.7°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#338EB7
RGBrgb(51, 142, 183)
HSLhsl(199, 56%, 46%)
HSVhsv(199, 72%, 72%)
CMYKcmyk(72.1%, 22.4%, 0%, 28.2%)
CIE-LABlab(55.55, -13.09, -29.16)
CIE-LCHlch(55.55, 31.96, 245.82°)
OKLaboklab(61.11% -0.0646 -0.0819)
OKLCHoklch(61.11% 0.104 231.7)
XYZxyz(19.5821, 23.4665, 48.2880)
Luminance0.2347 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB7 #B75C33
analogous
#33B79E #338EB7 #334CB7
triadic
#338EB7 #B7338E #8EB733
tetradic
#338EB7 #9E33B7 #B75C33 #4CB733
square
#338EB7 #9E33B7 #B75C33 #4CB733
split-complementary
#338EB7 #B7334C #B79E33
monochromatic
#184457 #266987 #338EB7 #57ABD0 #87C3DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338EB7#FFFFFF#000000##000000
##338EB71.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)
#798CB9
Deuteranopia (green-blind)
#677FB6
Tritanopia (blue-blind)
#00999C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb7;
/* rgb */ color: rgb(51, 142, 183);
/* oklch */ color: oklch(61.1% 0.104 231.7);
Tailwind
colors: {
  custom: {
    50: '#7cafcc',
    500: '#338eb7',
    950: '#000000',
  },
}
SCSS
$custom: #338eb7;
$custom-light: #7cafcc;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb7",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 183
  },
  "hsl": {
    "h": 198.636,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.61112,
    "c": 0.10433,
    "h": 231.7
  },
  "luminance": 0.23469
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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