#338EB2#338EB2

#338EB2 is a mid, moderate cyan. Relative luminance 0.233; OKLCH L 60.9% C 0.100 H 228.3°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#338EB2
RGBrgb(51, 142, 178)
HSLhsl(197, 55%, 45%)
HSVhsv(197, 71%, 70%)
CMYKcmyk(71.3%, 20.2%, 0%, 30.2%)
CIE-LABlab(55.34, -14.79, -26.63)
CIE-LCHlch(55.34, 30.46, 240.95°)
OKLaboklab(60.88% -0.0664 -0.0746)
OKLCHoklch(60.88% 0.1 228.3)
XYZxyz(19.0709, 23.2620, 45.5958)
Luminance0.2326 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB2 #B25733
analogous
#33B297 #338EB2 #334EB2
triadic
#338EB2 #B2338E #8EB233
tetradic
#338EB2 #9733B2 #B25733 #4EB233
square
#338EB2 #9733B2 #B25733 #4EB233
split-complementary
#338EB2 #B2334E #B29733
monochromatic
#184253 #256882 #338EB2 #54ABCE #84C3DC

Accessibility & contrast

On white

3.71
#338EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#338EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EB2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EB2#FFFFFF#000000##000000
##338EB21.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8CB4
Deuteranopia (green-blind)
#6A7FB2
Tritanopia (blue-blind)
#00989A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb2;
/* rgb */ color: rgb(51, 142, 178);
/* oklch */ color: oklch(60.9% 0.100 228.3);
Tailwind
colors: {
  custom: {
    50: '#7bafc9',
    500: '#338eb2',
    950: '#000000',
  },
}
SCSS
$custom: #338eb2;
$custom-light: #7bafc9;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb2",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 178
  },
  "hsl": {
    "h": 197.008,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.60876,
    "c": 0.09993,
    "h": 228.3
  },
  "luminance": 0.23264
}

Semantic roles & 50–950 ramp

primary
#338EB2
secondary
#C5907C
accent
#7349DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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