#338CD7#338CD7

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

Color values

HEX#338CD7
RGBrgb(51, 140, 215)
HSLhsl(207, 67%, 52%)
HSVhsv(207, 76%, 84%)
CMYKcmyk(76.3%, 34.9%, 0%, 15.7%)
CIE-LABlab(56.45, -0.69, -45.84)
CIE-LCHlch(56.45, 45.85, 269.14°)
OKLaboklab(62.32% -0.0526 -0.1304)
OKLCHoklch(62.32% 0.141 248)
XYZxyz(23.0044, 24.3636, 67.7670)
Luminance0.2437 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CD7 #D77E33
analogous
#33D7D0 #338CD7 #333AD7
triadic
#338CD7 #D7338C #8CD733
tetradic
#338CD7 #D033D7 #D77E33 #3AD733
square
#338CD7 #D033D7 #D77E33 #3AD733
split-complementary
#338CD7 #D7333A #D7D033
monochromatic
#184C78 #226CAB #338CD7 #66A9E1 #99C6EB

Accessibility & contrast

On white

3.58
#338CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338CD7#FFFFFF#000000##000000
##338CD71.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6990DA
Deuteranopia (green-blind)
#5181D6
Tritanopia (blue-blind)
#009EA7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #338cd7;
/* rgb */ color: rgb(51, 140, 215);
/* oklch */ color: oklch(62.3% 0.141 248.0);
Tailwind
colors: {
  custom: {
    50: '#81ade4',
    500: '#338cd7',
    950: '#000000',
  },
}
SCSS
$custom: #338cd7;
$custom-light: #81ade4;
$custom-dark: #000000;
JSON
{
  "hex": "#338cd7",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 215
  },
  "hsl": {
    "h": 207.439,
    "s": 67.213,
    "l": 52.157
  },
  "oklch": {
    "l": 0.62315,
    "c": 0.14064,
    "h": 248
  },
  "luminance": 0.24366
}

Semantic roles & 50–950 ramp

primary
#338CD7
secondary
#D7B08F
accent
#8D3EEA
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0C1015
muted
#7D7F83

Preview Lab

Preview with #338CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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