#338DB2#338DB2

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

Color values

HEX#338DB2
RGBrgb(51, 141, 178)
HSLhsl(197, 55%, 45%)
HSVhsv(197, 71%, 70%)
CMYKcmyk(71.3%, 20.8%, 0%, 30.2%)
CIE-LABlab(55.04, -14.24, -27.10)
CIE-LCHlch(55.04, 30.61, 242.28°)
OKLaboklab(60.63% -0.0654 -0.076)
OKLCHoklch(60.63% 0.1 229.3)
XYZxyz(18.9228, 22.9658, 45.5464)
Luminance0.2297 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB2 #B25833
analogous
#33B297 #338DB2 #334EB2
triadic
#338DB2 #B2338D #8DB233
tetradic
#338DB2 #9733B2 #B25833 #4EB233
square
#338DB2 #9733B2 #B25833 #4EB233
split-complementary
#338DB2 #B2334E #B29733
monochromatic
#184253 #256782 #338DB2 #54ABCE #84C2DC

Accessibility & contrast

On white

3.75
#338DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338DB2#FFFFFF#000000##000000
##338DB21.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338db2;
/* rgb */ color: rgb(51, 141, 178);
/* oklch */ color: oklch(60.6% 0.100 229.3);
Tailwind
colors: {
  custom: {
    50: '#7baec9',
    500: '#338db2',
    950: '#000000',
  },
}
SCSS
$custom: #338db2;
$custom-light: #7baec9;
$custom-dark: #000000;
JSON
{
  "hex": "#338db2",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 178
  },
  "hsl": {
    "h": 197.48,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.60633,
    "c": 0.10029,
    "h": 229.3
  },
  "luminance": 0.22968
}

Semantic roles & 50–950 ramp

primary
#338DB2
secondary
#C5917C
accent
#7549DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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