#338FBC#338FBC

#338FBC is a mid, moderate cyan. Relative luminance 0.240; OKLCH L 61.6% C 0.109 H 234.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#338FBC
RGBrgb(51, 143, 188)
HSLhsl(200, 57%, 47%)
HSVhsv(200, 73%, 74%)
CMYKcmyk(72.9%, 23.9%, 0%, 26.3%)
CIE-LABlab(56.06, -11.94, -31.20)
CIE-LCHlch(56.06, 33.41, 249.06°)
OKLaboklab(61.59% -0.0638 -0.0878)
OKLCHoklch(61.59% 0.109 234)
XYZxyz(20.2612, 23.9772, 51.1274)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FBC #BC6033
analogous
#33BCA5 #338FBC #334BBC
triadic
#338FBC #BC338F #8FBC33
tetradic
#338FBC #A533BC #BC6033 #4BBC33
square
#338FBC #A533BC #BC6033 #4BBC33
split-complementary
#338FBC #BC334B #BCA533
monochromatic
#19465C #266A8C #338FBC #5AABD2 #8AC3DF

Accessibility & contrast

On white

3.62
#338FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#338FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FBC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FBC#FFFFFF#000000##000000
##338FBC1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#798EBE
Deuteranopia (green-blind)
#6681BB
Tritanopia (blue-blind)
#009B9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338fbc;
/* rgb */ color: rgb(51, 143, 188);
/* oklch */ color: oklch(61.6% 0.109 234.0);
Tailwind
colors: {
  custom: {
    50: '#7dafd0',
    500: '#338fbc',
    950: '#000000',
  },
}
SCSS
$custom: #338fbc;
$custom-light: #7dafd0;
$custom-dark: #000000;
JSON
{
  "hex": "#338fbc",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 188
  },
  "hsl": {
    "h": 199.708,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.10855,
    "h": 234
  },
  "luminance": 0.2398
}

Semantic roles & 50–950 ramp

primary
#338FBC
secondary
#C99981
accent
#7A47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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