#338FB4#338FB4

#338FB4 is a mid, moderate cyan. Relative luminance 0.236; OKLCH L 61.2% C 0.101 H 228.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#338FB4
RGBrgb(51, 143, 180)
HSLhsl(197, 56%, 45%)
HSVhsv(197, 72%, 71%)
CMYKcmyk(71.7%, 20.6%, 0%, 29.4%)
CIE-LABlab(55.73, -14.66, -27.17)
CIE-LCHlch(55.73, 30.88, 241.64°)
OKLaboklab(61.21% -0.0667 -0.0762)
OKLCHoklch(61.21% 0.101 228.8)
XYZxyz(19.4226, 23.6418, 46.7109)
Luminance0.2364 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB4 #B45833
analogous
#33B498 #338FB4 #334FB4
triadic
#338FB4 #B4338F #8FB433
tetradic
#338FB4 #9833B4 #B45833 #4FB433
square
#338FB4 #9833B4 #B45833 #4FB433
split-complementary
#338FB4 #B4334F #B49833
monochromatic
#184355 #256984 #338FB4 #55ACCF #85C3DC

Accessibility & contrast

On white

3.67
#338FB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#338FB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB4#FFFFFF#000000##000000
##338FB41.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8DB6
Deuteranopia (green-blind)
#6A80B4
Tritanopia (blue-blind)
#00999B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338fb4;
/* rgb */ color: rgb(51, 143, 180);
/* oklch */ color: oklch(61.2% 0.101 228.8);
Tailwind
colors: {
  custom: {
    50: '#7cafca',
    500: '#338fb4',
    950: '#000000',
  },
}
SCSS
$custom: #338fb4;
$custom-light: #7cafca;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb4",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 180
  },
  "hsl": {
    "h": 197.209,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.61212,
    "c": 0.10128,
    "h": 228.8
  },
  "luminance": 0.23644
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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