#338FB6#338FB6

#338FB6 is a mid, moderate cyan. Relative luminance 0.237; OKLCH L 61.3% C 0.103 H 230.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#338FB6
RGBrgb(51, 143, 182)
HSLhsl(198, 56%, 46%)
HSVhsv(198, 72%, 71%)
CMYKcmyk(72%, 21.4%, 0%, 28.6%)
CIE-LABlab(55.81, -13.99, -28.18)
CIE-LCHlch(55.81, 31.46, 243.60°)
OKLaboklab(61.31% -0.066 -0.0791)
OKLCHoklch(61.31% 0.103 230.2)
XYZxyz(19.6278, 23.7239, 47.7916)
Luminance0.2373 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB6 #B65A33
analogous
#33B69B #338FB6 #334DB6
triadic
#338FB6 #B6338F #8FB633
tetradic
#338FB6 #9B33B6 #B65A33 #4DB633
square
#338FB6 #9B33B6 #B65A33 #4DB633
split-complementary
#338FB6 #B6334D #B69B33
monochromatic
#184456 #266986 #338FB6 #56ACD0 #86C3DD

Accessibility & contrast

On white

3.66
#338FB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338FB6#FFFFFF#000000##000000
##338FB61.003.665.755.75
#FFFFFF3.661.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338fb6;
/* rgb */ color: rgb(51, 143, 182);
/* oklch */ color: oklch(61.3% 0.103 230.2);
Tailwind
colors: {
  custom: {
    50: '#7cafcc',
    500: '#338fb6',
    950: '#000000',
  },
}
SCSS
$custom: #338fb6;
$custom-light: #7cafcc;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb6",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 182
  },
  "hsl": {
    "h": 197.863,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.61306,
    "c": 0.10301,
    "h": 230.2
  },
  "luminance": 0.23726
}

Semantic roles & 50–950 ramp

primary
#338FB6
secondary
#C7947E
accent
#7548E0
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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