#338CE2#338CE2

#338CE2 is a light, vivid cyan. Relative luminance 0.250; OKLCH L 63.0% C 0.154 H 251.1°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#338CE2
RGBrgb(51, 140, 226)
HSLhsl(209, 75%, 54%)
HSVhsv(209, 77%, 89%)
CMYKcmyk(77.4%, 38.1%, 0%, 11.4%)
CIE-LABlab(57.02, 3.30, -51.09)
CIE-LCHlch(57.02, 51.19, 273.69°)
OKLaboklab(62.95% -0.0498 -0.1458)
OKLCHoklch(62.95% 0.154 251.1)
XYZxyz(24.4656, 24.9480, 75.4628)
Luminance0.2495 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CE2 #E28933
analogous
#33E2E1 #338CE2 #3335E2
triadic
#338CE2 #E2338C #8CE233
tetradic
#338CE2 #E133E2 #E28933 #35E233
square
#338CE2 #E133E2 #E28933 #35E233
split-complementary
#338CE2 #E23335 #E2E133
monochromatic
#134E87 #1B6DBD #338CE2 #69AAEA #9EC8F1

Accessibility & contrast

On white

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

On black

5.99
#338CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CE2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CE2#FFFFFF#000000##000000
##338CE21.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6392E5
Deuteranopia (green-blind)
#4882E0
Tritanopia (blue-blind)
#00A0AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #338ce2;
/* rgb */ color: rgb(51, 140, 226);
/* oklch */ color: oklch(63.0% 0.154 251.1);
Tailwind
colors: {
  custom: {
    50: '#83adeb',
    500: '#338ce2',
    950: '#000000',
  },
}
SCSS
$custom: #338ce2;
$custom-light: #83adeb;
$custom-dark: #000000;
JSON
{
  "hex": "#338ce2",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 226
  },
  "hsl": {
    "h": 209.486,
    "s": 75.107,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62953,
    "c": 0.15405,
    "h": 251.1
  },
  "luminance": 0.24951
}

Semantic roles & 50–950 ramp

primary
#338CE2
secondary
#DEB893
accent
#9236F2
background
#F8FAFE
surface
#F0F4FD
border
#CBCED5
text
#0C1016
muted
#7D7F84

Preview Lab

Preview with #338CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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