#338AC8#338AC8

#338AC8 is a mid, vivid cyan. Relative luminance 0.231; OKLCH L 61.0% C 0.125 H 243.8°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#338AC8
RGBrgb(51, 138, 200)
HSLhsl(205, 59%, 49%)
HSVhsv(205, 75%, 78%)
CMYKcmyk(74.5%, 31%, 0%, 21.6%)
CIE-LABlab(55.12, -4.89, -39.48)
CIE-LCHlch(55.12, 39.79, 262.94°)
OKLaboklab(61.03% -0.0551 -0.1119)
OKLCHoklch(61.03% 0.125 243.8)
XYZxyz(20.8750, 23.0485, 57.9810)
Luminance0.2305 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AC8 #C87133
analogous
#33C8BC #338AC8 #3340C8
triadic
#338AC8 #C8338A #8AC833
tetradic
#338AC8 #BC33C8 #C87133 #40C833
square
#338AC8 #BC33C8 #C87133 #40C833
split-complementary
#338AC8 #C83340 #C8BC33
monochromatic
#1A4766 #276897 #338AC8 #61A6D7 #92C2E3

Accessibility & contrast

On white

3.74
#338AC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#338AC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AC8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AC8#FFFFFF#000000##000000
##338AC81.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8CCB
Deuteranopia (green-blind)
#597EC7
Tritanopia (blue-blind)
#0099A0
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338ac8;
/* rgb */ color: rgb(51, 138, 200);
/* oklch */ color: oklch(61.0% 0.125 243.8);
Tailwind
colors: {
  custom: {
    50: '#7fabd9',
    500: '#338ac8',
    950: '#000000',
  },
}
SCSS
$custom: #338ac8;
$custom-light: #7fabd9;
$custom-dark: #000000;
JSON
{
  "hex": "#338ac8",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 200
  },
  "hsl": {
    "h": 204.966,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.61025,
    "c": 0.12469,
    "h": 243.8
  },
  "luminance": 0.23051
}

Semantic roles & 50–950 ramp

primary
#338AC8
secondary
#CEA689
accent
#8745E3
background
#F8FAFD
surface
#F0F4FA
border
#CBCED3
text
#0B1014
muted
#7C7F83

Preview Lab

Preview with #338AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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