#338EB3#338EB3

#338EB3 is a mid, moderate cyan. Relative luminance 0.233; OKLCH L 60.9% C 0.101 H 229.0°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#338EB3
RGBrgb(51, 142, 179)
HSLhsl(197, 56%, 45%)
HSVhsv(197, 72%, 70%)
CMYKcmyk(71.5%, 20.7%, 0%, 29.8%)
CIE-LABlab(55.38, -14.45, -27.14)
CIE-LCHlch(55.38, 30.74, 241.96°)
OKLaboklab(60.92% -0.0661 -0.0761)
OKLCHoklch(60.92% 0.101 229)
XYZxyz(19.1716, 23.3023, 46.1265)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB3 #B35833
analogous
#33B398 #338EB3 #334EB3
triadic
#338EB3 #B3338E #8EB333
tetradic
#338EB3 #9833B3 #B35833 #4EB333
square
#338EB3 #9833B3 #B35833 #4EB333
split-complementary
#338EB3 #B3334E #B39833
monochromatic
#184254 #256883 #338EB3 #55ABCE #84C3DC

Accessibility & contrast

On white

3.71
#338EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#338EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EB3
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EB3#FFFFFF#000000##000000
##338EB31.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8CB5
Deuteranopia (green-blind)
#697FB2
Tritanopia (blue-blind)
#00989A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb3;
/* rgb */ color: rgb(51, 142, 179);
/* oklch */ color: oklch(60.9% 0.101 229.0);
Tailwind
colors: {
  custom: {
    50: '#7bafca',
    500: '#338eb3',
    950: '#000000',
  },
}
SCSS
$custom: #338eb3;
$custom-light: #7bafca;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb3",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 179
  },
  "hsl": {
    "h": 197.344,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.60923,
    "c": 0.10079,
    "h": 229
  },
  "luminance": 0.23304
}

Semantic roles & 50–950 ramp

primary
#338EB3
secondary
#C6917C
accent
#7449DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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