#338AB2#338AB2

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

Color values

HEX#338AB2
RGBrgb(51, 138, 178)
HSLhsl(199, 55%, 45%)
HSVhsv(199, 71%, 70%)
CMYKcmyk(71.3%, 22.5%, 0%, 30.2%)
CIE-LABlab(54.13, -12.57, -28.51)
CIE-LCHlch(54.13, 31.16, 246.21°)
OKLaboklab(59.91% -0.0624 -0.0801)
OKLCHoklch(59.91% 0.102 232.1)
XYZxyz(18.4864, 22.0930, 45.4009)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB2 #B25B33
analogous
#33B29B #338AB2 #334AB2
triadic
#338AB2 #B2338A #8AB233
tetradic
#338AB2 #9B33B2 #B25B33 #4AB233
square
#338AB2 #9B33B2 #B25B33 #4AB233
split-complementary
#338AB2 #B2334A #B29B33
monochromatic
#184053 #256582 #338AB2 #54A8CE #84C0DC

Accessibility & contrast

On white

3.88
#338AB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#338AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB2#FFFFFF#000000##000000
##338AB21.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7688B4
Deuteranopia (green-blind)
#657CB1
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ab2;
/* rgb */ color: rgb(51, 138, 178);
/* oklch */ color: oklch(59.9% 0.102 232.1);
Tailwind
colors: {
  custom: {
    50: '#7bacc9',
    500: '#338ab2',
    950: '#000000',
  },
}
SCSS
$custom: #338ab2;
$custom-light: #7bacc9;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab2",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 178
  },
  "hsl": {
    "h": 198.898,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.59906,
    "c": 0.10151,
    "h": 232.1
  },
  "luminance": 0.22095
}

Semantic roles & 50–950 ramp

primary
#338AB2
secondary
#C5937C
accent
#7849DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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