#338EC2#338EC2

#338EC2 is a mid, moderate cyan. Relative luminance 0.239; OKLCH L 61.7% C 0.115 H 238.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#338EC2
RGBrgb(51, 142, 194)
HSLhsl(202, 58%, 48%)
HSVhsv(202, 74%, 76%)
CMYKcmyk(73.7%, 26.8%, 0%, 23.9%)
CIE-LABlab(56.03, -9.30, -34.66)
CIE-LCHlch(56.03, 35.89, 254.98°)
OKLaboklab(61.65% -0.0608 -0.0978)
OKLCHoklch(61.65% 0.115 238.1)
XYZxyz(20.7720, 23.9425, 54.5551)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EC2 #C26733
analogous
#33C2AE #338EC2 #3347C2
triadic
#338EC2 #C2338E #8EC233
tetradic
#338EC2 #AE33C2 #C26733 #47C233
square
#338EC2 #AE33C2 #C26733 #47C233
split-complementary
#338EC2 #C23347 #C2AE33
monochromatic
#1A4761 #266B92 #338EC2 #5EA9D5 #8EC3E1

Accessibility & contrast

On white

3.63
#338EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#338EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EC2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EC2#FFFFFF#000000##000000
##338EC21.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#758EC4
Deuteranopia (green-blind)
#6280C1
Tritanopia (blue-blind)
#009BA0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338ec2;
/* rgb */ color: rgb(51, 142, 194);
/* oklch */ color: oklch(61.7% 0.115 238.1);
Tailwind
colors: {
  custom: {
    50: '#7eafd4',
    500: '#338ec2',
    950: '#000000',
  },
}
SCSS
$custom: #338ec2;
$custom-light: #7eafd4;
$custom-dark: #000000;
JSON
{
  "hex": "#338ec2",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 194
  },
  "hsl": {
    "h": 201.818,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.61652,
    "c": 0.11517,
    "h": 238.1
  },
  "luminance": 0.23945
}

Semantic roles & 50–950 ramp

primary
#338EC2
secondary
#CC9F85
accent
#7F46E2
background
#F8FAFD
surface
#EFF4FA
border
#CACED3
text
#0B1014
muted
#7C7F83

Preview Lab

Preview with #338EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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