#338AE2#338AE2

#338AE2 is a light, vivid cyan. Relative luminance 0.244; OKLCH L 62.5% C 0.156 H 252.0°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#338AE2
RGBrgb(51, 138, 226)
HSLhsl(210, 75%, 54%)
HSVhsv(210, 77%, 89%)
CMYKcmyk(77.4%, 38.9%, 0%, 11.4%)
CIE-LABlab(56.46, 4.49, -51.99)
CIE-LCHlch(56.46, 52.19, 274.94°)
OKLaboklab(62.51% -0.0481 -0.1485)
OKLCHoklch(62.51% 0.156 252)
XYZxyz(24.1760, 24.3689, 75.3662)
Luminance0.2437 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AE2 #E28B33
analogous
#33E2E2 #338AE2 #3433E2
triadic
#338AE2 #E2338A #8AE233
tetradic
#338AE2 #E233E2 #E28B33 #33E234
square
#338AE2 #E233E2 #E28B33 #33E234
split-complementary
#338AE2 #E23433 #E2E233
monochromatic
#134D87 #1B6BBD #338AE2 #69A9EA #9EC7F1

Accessibility & contrast

On white

3.57
#338AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#338AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AE2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AE2#FFFFFF#000000##000000
##338AE21.003.575.875.87
#FFFFFF3.571.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6090E6
Deuteranopia (green-blind)
#4480E0
Tritanopia (blue-blind)
#009FAB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #338ae2;
/* rgb */ color: rgb(51, 138, 226);
/* oklch */ color: oklch(62.5% 0.156 252.0);
Tailwind
colors: {
  custom: {
    50: '#83abeb',
    500: '#338ae2',
    950: '#000000',
  },
}
SCSS
$custom: #338ae2;
$custom-light: #83abeb;
$custom-dark: #000000;
JSON
{
  "hex": "#338ae2",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 226
  },
  "hsl": {
    "h": 210.171,
    "s": 75.107,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62507,
    "c": 0.15607,
    "h": 252
  },
  "luminance": 0.24372
}

Semantic roles & 50–950 ramp

primary
#338AE2
secondary
#DEB993
accent
#9436F2
background
#F8FAFE
surface
#F0F4FD
border
#CBCED5
text
#0C1016
muted
#7D7F84

Preview Lab

Preview with #338AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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