#338ED6#338ED6

#338ED6 is a light, vivid cyan. Relative luminance 0.249; OKLCH L 62.7% C 0.138 H 246.6°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#338ED6
RGBrgb(51, 142, 214)
HSLhsl(207, 67%, 52%)
HSVhsv(207, 76%, 84%)
CMYKcmyk(76.2%, 33.6%, 0%, 16.1%)
CIE-LABlab(56.98, -2.22, -44.45)
CIE-LCHlch(56.98, 44.50, 267.14°)
OKLaboklab(62.72% -0.0547 -0.1263)
OKLCHoklch(62.72% 0.138 246.6)
XYZxyz(23.1712, 24.9021, 67.1907)
Luminance0.2490 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338ED6 #D67B33
analogous
#33D6CD #338ED6 #333DD6
triadic
#338ED6 #D6338E #8ED633
tetradic
#338ED6 #CD33D6 #D67B33 #3DD633
square
#338ED6 #CD33D6 #D67B33 #3DD633
split-complementary
#338ED6 #D6333D #D6CD33
monochromatic
#184D77 #226EAA #338ED6 #66AAE0 #99C6EA

Accessibility & contrast

On white

3.51
#338ED6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#338ED6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338ED6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338ED6#FFFFFF#000000##000000
##338ED61.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D91D9
Deuteranopia (green-blind)
#5582D5
Tritanopia (blue-blind)
#009FA8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #338ed6;
/* rgb */ color: rgb(51, 142, 214);
/* oklch */ color: oklch(62.7% 0.138 246.6);
Tailwind
colors: {
  custom: {
    50: '#81aee3',
    500: '#338ed6',
    950: '#000000',
  },
}
SCSS
$custom: #338ed6;
$custom-light: #81aee3;
$custom-dark: #000000;
JSON
{
  "hex": "#338ed6",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 214
  },
  "hsl": {
    "h": 206.503,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.62715,
    "c": 0.13764,
    "h": 246.6
  },
  "luminance": 0.24905
}

Semantic roles & 50–950 ramp

primary
#338ED6
secondary
#D6AE8F
accent
#8A3EE9
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0C1015
muted
#7D7F83

Preview Lab

Preview with #338ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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