#338EA7#338EA7

#338EA7 is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.4% C 0.092 H 219.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#338EA7
RGBrgb(51, 142, 167)
HSLhsl(193, 53%, 43%)
HSVhsv(193, 69%, 65%)
CMYKcmyk(69.5%, 15%, 0%, 34.5%)
CIE-LABlab(54.90, -18.44, -21.00)
CIE-LCHlch(54.90, 27.95, 228.72°)
OKLaboklab(60.38% -0.0707 -0.0586)
OKLCHoklch(60.38% 0.092 219.6)
XYZxyz(18.0104, 22.8378, 40.0107)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA7 #A74C33
analogous
#33A786 #338EA7 #3354A7
triadic
#338EA7 #A7338E #8EA733
tetradic
#338EA7 #8633A7 #A74C33 #54A733
square
#338EA7 #8633A7 #A74C33 #54A733
split-complementary
#338EA7 #A73354 #A78633
monochromatic
#163E49 #256678 #338EA7 #4EAFC9 #7DC4D7

Accessibility & contrast

On white

3.77
#338EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#338EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA7#FFFFFF#000000##000000
##338EA71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8AA8
Deuteranopia (green-blind)
#6E7EA7
Tritanopia (blue-blind)
#009696
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea7;
/* rgb */ color: rgb(51, 142, 167);
/* oklch */ color: oklch(60.4% 0.092 219.6);
Tailwind
colors: {
  custom: {
    50: '#7aafc1',
    500: '#338ea7',
    950: '#000000',
  },
}
SCSS
$custom: #338ea7;
$custom-light: #7aafc1;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea7",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 167
  },
  "hsl": {
    "h": 192.931,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.60383,
    "c": 0.09183,
    "h": 219.6
  },
  "luminance": 0.2284
}

Semantic roles & 50–950 ramp

primary
#338EA7
secondary
#C08676
accent
#6B4BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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