#338DB4#338DB4

#338DB4 is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 60.7% C 0.102 H 230.7°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#338DB4
RGBrgb(51, 141, 180)
HSLhsl(198, 56%, 45%)
HSVhsv(198, 72%, 71%)
CMYKcmyk(71.7%, 21.7%, 0%, 29.4%)
CIE-LABlab(55.12, -13.56, -28.11)
CIE-LCHlch(55.12, 31.21, 244.25°)
OKLaboklab(60.73% -0.0647 -0.0789)
OKLCHoklch(60.73% 0.102 230.7)
XYZxyz(19.1250, 23.0467, 46.6117)
Luminance0.2305 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DB4 #B45A33
analogous
#33B49B #338DB4 #334CB4
triadic
#338DB4 #B4338D #8DB433
tetradic
#338DB4 #9B33B4 #B45A33 #4CB433
square
#338DB4 #9B33B4 #B45A33 #4CB433
split-complementary
#338DB4 #B4334C #B49B33
monochromatic
#184255 #256884 #338DB4 #55AACF #85C2DC

Accessibility & contrast

On white

3.74
#338DB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#338DB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DB4
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DB4#FFFFFF#000000##000000
##338DB41.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#798BB6
Deuteranopia (green-blind)
#687EB3
Tritanopia (blue-blind)
#00989A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338db4;
/* rgb */ color: rgb(51, 141, 180);
/* oklch */ color: oklch(60.7% 0.102 230.7);
Tailwind
colors: {
  custom: {
    50: '#7baeca',
    500: '#338db4',
    950: '#000000',
  },
}
SCSS
$custom: #338db4;
$custom-light: #7baeca;
$custom-dark: #000000;
JSON
{
  "hex": "#338db4",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 180
  },
  "hsl": {
    "h": 198.14,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.60727,
    "c": 0.10204,
    "h": 230.7
  },
  "luminance": 0.23049
}

Semantic roles & 50–950 ramp

primary
#338DB4
secondary
#C6937D
accent
#7649DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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