#338DB1#338DB1

#338DB1 is a mid, moderate cyan. Relative luminance 0.229; OKLCH L 60.6% C 0.099 H 228.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#338DB1
RGBrgb(51, 141, 177)
HSLhsl(197, 55%, 45%)
HSVhsv(197, 71%, 69%)
CMYKcmyk(71.2%, 20.3%, 0%, 30.6%)
CIE-LABlab(55.00, -14.58, -26.59)
CIE-LCHlch(55.00, 30.32, 241.27°)
OKLaboklab(60.59% -0.0658 -0.0745)
OKLCHoklch(60.59% 0.099 228.6)
XYZxyz(18.8227, 22.9258, 45.0196)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB1 #B15733
analogous
#33B196 #338DB1 #334EB1
triadic
#338DB1 #B1338D #8DB133
tetradic
#338DB1 #9633B1 #B15733 #4EB133
square
#338DB1 #9633B1 #B15733 #4EB133
split-complementary
#338DB1 #B1334E #B19633
monochromatic
#184152 #256781 #338DB1 #54ABCE #83C2DB

Accessibility & contrast

On white

3.76
#338DB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#338DB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DB1
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DB1#FFFFFF#000000##000000
##338DB11.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8BB3
Deuteranopia (green-blind)
#697EB1
Tritanopia (blue-blind)
#009799
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338db1;
/* rgb */ color: rgb(51, 141, 177);
/* oklch */ color: oklch(60.6% 0.099 228.6);
Tailwind
colors: {
  custom: {
    50: '#7baec8',
    500: '#338db1',
    950: '#000000',
  },
}
SCSS
$custom: #338db1;
$custom-light: #7baec8;
$custom-dark: #000000;
JSON
{
  "hex": "#338db1",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 177
  },
  "hsl": {
    "h": 197.143,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.09943,
    "h": 228.6
  },
  "luminance": 0.22928
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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