#338AB3#338AB3

#338AB3 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 60.0% C 0.102 H 232.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#338AB3
RGBrgb(51, 138, 179)
HSLhsl(199, 56%, 45%)
HSVhsv(199, 72%, 70%)
CMYKcmyk(71.5%, 22.9%, 0%, 29.8%)
CIE-LABlab(54.17, -12.23, -29.02)
CIE-LCHlch(54.17, 31.49, 247.15°)
OKLaboklab(59.95% -0.062 -0.0815)
OKLCHoklch(59.95% 0.102 232.7)
XYZxyz(18.5872, 22.1333, 45.9317)
Luminance0.2213 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB3 #B35C33
analogous
#33B39C #338AB3 #334AB3
triadic
#338AB3 #B3338A #8AB333
tetradic
#338AB3 #9C33B3 #B35C33 #4AB333
square
#338AB3 #9C33B3 #B35C33 #4AB333
split-complementary
#338AB3 #B3334A #B39C33
monochromatic
#184154 #256583 #338AB3 #55A7CE #84C0DC

Accessibility & contrast

On white

3.87
#338AB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#338AB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB3
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB3#FFFFFF#000000##000000
##338AB31.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7689B5
Deuteranopia (green-blind)
#647CB2
Tritanopia (blue-blind)
#009598
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ab3;
/* rgb */ color: rgb(51, 138, 179);
/* oklch */ color: oklch(60.0% 0.102 232.7);
Tailwind
colors: {
  custom: {
    50: '#7bacca',
    500: '#338ab3',
    950: '#000000',
  },
}
SCSS
$custom: #338ab3;
$custom-light: #7bacca;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab3",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 179
  },
  "hsl": {
    "h": 199.219,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.59954,
    "c": 0.10245,
    "h": 232.7
  },
  "luminance": 0.22135
}

Semantic roles & 50–950 ramp

primary
#338AB3
secondary
#C6947C
accent
#7949DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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