#338DB7#338DB7

#338DB7 is a mid, moderate cyan. Relative luminance 0.232; OKLCH L 60.9% C 0.105 H 232.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#338DB7
RGBrgb(51, 141, 183)
HSLhsl(199, 56%, 46%)
HSVhsv(199, 72%, 72%)
CMYKcmyk(72.1%, 23%, 0%, 28.2%)
CIE-LABlab(55.25, -12.54, -29.63)
CIE-LCHlch(55.25, 32.17, 247.06°)
OKLaboklab(60.87% -0.0636 -0.0833)
OKLCHoklch(60.87% 0.105 232.6)
XYZxyz(19.4340, 23.1702, 48.2386)
Luminance0.2317 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB7 #B75D33
analogous
#33B79F #338DB7 #334BB7
triadic
#338DB7 #B7338D #8DB733
tetradic
#338DB7 #9F33B7 #B75D33 #4BB733
square
#338DB7 #9F33B7 #B75D33 #4BB733
split-complementary
#338DB7 #B7334B #B79F33
monochromatic
#184357 #266887 #338DB7 #57AAD0 #87C2DE

Accessibility & contrast

On white

3.73
#338DB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#338DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DB7
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DB7#FFFFFF#000000##000000
##338DB71.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#788BB9
Deuteranopia (green-blind)
#667FB6
Tritanopia (blue-blind)
#00989B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338db7;
/* rgb */ color: rgb(51, 141, 183);
/* oklch */ color: oklch(60.9% 0.105 232.6);
Tailwind
colors: {
  custom: {
    50: '#7caecc',
    500: '#338db7',
    950: '#000000',
  },
}
SCSS
$custom: #338db7;
$custom-light: #7caecc;
$custom-dark: #000000;
JSON
{
  "hex": "#338db7",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 183
  },
  "hsl": {
    "h": 199.091,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.6087,
    "c": 0.10479,
    "h": 232.6
  },
  "luminance": 0.23172
}

Semantic roles & 50–950 ramp

primary
#338DB7
secondary
#C7967F
accent
#7848E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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