#338EB4#338EB4

#338EB4 is a mid, moderate cyan. Relative luminance 0.233; OKLCH L 61.0% C 0.102 H 229.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#338EB4
RGBrgb(51, 142, 180)
HSLhsl(198, 56%, 45%)
HSVhsv(198, 72%, 71%)
CMYKcmyk(71.7%, 21.1%, 0%, 29.4%)
CIE-LABlab(55.42, -14.11, -27.64)
CIE-LCHlch(55.42, 31.04, 242.95°)
OKLaboklab(60.97% -0.0657 -0.0775)
OKLCHoklch(60.97% 0.102 229.7)
XYZxyz(19.2731, 23.3429, 46.6610)
Luminance0.2334 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB4 #B45933
analogous
#33B499 #338EB4 #334EB4
triadic
#338EB4 #B4338E #8EB433
tetradic
#338EB4 #9933B4 #B45933 #4EB433
square
#338EB4 #9933B4 #B45933 #4EB433
split-complementary
#338EB4 #B4334E #B49933
monochromatic
#184355 #256884 #338EB4 #55ABCF #85C3DC

Accessibility & contrast

On white

3.70
#338EB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#338EB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EB4
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EB4#FFFFFF#000000##000000
##338EB41.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8CB6
Deuteranopia (green-blind)
#697FB3
Tritanopia (blue-blind)
#00999B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb4;
/* rgb */ color: rgb(51, 142, 180);
/* oklch */ color: oklch(61.0% 0.102 229.7);
Tailwind
colors: {
  custom: {
    50: '#7cafca',
    500: '#338eb4',
    950: '#000000',
  },
}
SCSS
$custom: #338eb4;
$custom-light: #7cafca;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb4",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 180
  },
  "hsl": {
    "h": 197.674,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.6097,
    "c": 0.10165,
    "h": 229.7
  },
  "luminance": 0.23345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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