#338EAA#338EAA

#338EAA is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 60.5% C 0.094 H 222.2°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#338EAA
RGBrgb(51, 142, 170)
HSLhsl(194, 54%, 43%)
HSVhsv(194, 70%, 67%)
CMYKcmyk(70%, 16.5%, 0%, 33.3%)
CIE-LABlab(55.02, -17.45, -22.54)
CIE-LCHlch(55.02, 28.51, 232.25°)
OKLaboklab(60.51% -0.0695 -0.063)
OKLCHoklch(60.51% 0.094 222.2)
XYZxyz(18.2910, 22.9500, 41.4882)
Luminance0.2295 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EAA #AA4F33
analogous
#33AA8A #338EAA #3352AA
triadic
#338EAA #AA338E #8EAA33
tetradic
#338EAA #8A33AA #AA4F33 #52AA33
square
#338EAA #8A33AA #AA4F33 #52AA33
split-complementary
#338EAA #AA3352 #AA8A33
monochromatic
#173F4C #25677B #338EAA #50AECA #7FC3D9

Accessibility & contrast

On white

3.76
#338EAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#338EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EAA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EAA#FFFFFF#000000##000000
##338EAA1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8BAB
Deuteranopia (green-blind)
#6D7EAA
Tritanopia (blue-blind)
#009797
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338eaa;
/* rgb */ color: rgb(51, 142, 170);
/* oklch */ color: oklch(60.5% 0.094 222.2);
Tailwind
colors: {
  custom: {
    50: '#7aafc3',
    500: '#338eaa',
    950: '#000000',
  },
}
SCSS
$custom: #338eaa;
$custom-light: #7aafc3;
$custom-dark: #000000;
JSON
{
  "hex": "#338eaa",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 170
  },
  "hsl": {
    "h": 194.118,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.60514,
    "c": 0.0938,
    "h": 222.2
  },
  "luminance": 0.22952
}

Semantic roles & 50–950 ramp

primary
#338EAA
secondary
#C28977
accent
#6D4BDD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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