#338EBC#338EBC

#338EBC is a mid, moderate cyan. Relative luminance 0.237; OKLCH L 61.4% C 0.109 H 234.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#338EBC
RGBrgb(51, 142, 188)
HSLhsl(200, 57%, 47%)
HSVhsv(200, 73%, 74%)
CMYKcmyk(72.9%, 24.5%, 0%, 26.3%)
CIE-LABlab(55.76, -11.38, -31.67)
CIE-LCHlch(55.76, 33.65, 250.23°)
OKLaboklab(61.35% -0.0628 -0.0892)
OKLCHoklch(61.35% 0.109 234.8)
XYZxyz(20.1117, 23.6783, 51.0776)
Luminance0.2368 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EBC #BC6133
analogous
#33BCA6 #338EBC #334ABC
triadic
#338EBC #BC338E #8EBC33
tetradic
#338EBC #A633BC #BC6133 #4ABC33
square
#338EBC #A633BC #BC6133 #4ABC33
split-complementary
#338EBC #BC334A #BCA633
monochromatic
#19455C #266A8C #338EBC #5AAAD2 #8AC3DF

Accessibility & contrast

On white

3.66
#338EBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#338EBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EBC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EBC#FFFFFF#000000##000000
##338EBC1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#788DBE
Deuteranopia (green-blind)
#6580BB
Tritanopia (blue-blind)
#009A9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338ebc;
/* rgb */ color: rgb(51, 142, 188);
/* oklch */ color: oklch(61.4% 0.109 234.8);
Tailwind
colors: {
  custom: {
    50: '#7dafd0',
    500: '#338ebc',
    950: '#000000',
  },
}
SCSS
$custom: #338ebc;
$custom-light: #7dafd0;
$custom-dark: #000000;
JSON
{
  "hex": "#338ebc",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 188
  },
  "hsl": {
    "h": 200.146,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.61353,
    "c": 0.10909,
    "h": 234.8
  },
  "luminance": 0.23681
}

Semantic roles & 50–950 ramp

primary
#338EBC
secondary
#C99A81
accent
#7B47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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