#338AB0#338AB0

#338AB0 is a mid, moderate cyan. Relative luminance 0.220; OKLCH L 59.8% C 0.100 H 230.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#338AB0
RGBrgb(51, 138, 176)
HSLhsl(198, 55%, 45%)
HSVhsv(198, 71%, 69%)
CMYKcmyk(71%, 21.6%, 0%, 31%)
CIE-LABlab(54.04, -13.25, -27.50)
CIE-LCHlch(54.04, 30.52, 244.27°)
OKLaboklab(59.81% -0.0631 -0.0772)
OKLCHoklch(59.81% 0.1 230.7)
XYZxyz(18.2871, 22.0133, 44.3511)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB0 #B05933
analogous
#33B098 #338AB0 #334CB0
triadic
#338AB0 #B0338A #8AB033
tetradic
#338AB0 #9833B0 #B05933 #4CB033
square
#338AB0 #9833B0 #B05933 #4CB033
split-complementary
#338AB0 #B0334C #B09833
monochromatic
#184051 #256581 #338AB0 #53A8CD #82C0DB

Accessibility & contrast

On white

3.89
#338AB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#338AB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB0
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB0#FFFFFF#000000##000000
##338AB01.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7788B2
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#009497
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ab0;
/* rgb */ color: rgb(51, 138, 176);
/* oklch */ color: oklch(59.8% 0.100 230.7);
Tailwind
colors: {
  custom: {
    50: '#7bacc7',
    500: '#338ab0',
    950: '#000000',
  },
}
SCSS
$custom: #338ab0;
$custom-light: #7bacc7;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab0",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 176
  },
  "hsl": {
    "h": 198.24,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.59811,
    "c": 0.09968,
    "h": 230.7
  },
  "luminance": 0.22015
}

Semantic roles & 50–950 ramp

primary
#338AB0
secondary
#C4917B
accent
#7749DE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #338AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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