#338EA5#338EA5

#338EA5 is a mid, moderate cyan. Relative luminance 0.228; OKLCH L 60.3% C 0.091 H 217.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#338EA5
RGBrgb(51, 142, 165)
HSLhsl(192, 53%, 42%)
HSVhsv(192, 69%, 65%)
CMYKcmyk(69.1%, 13.9%, 0%, 35.3%)
CIE-LABlab(54.83, -19.09, -19.97)
CIE-LCHlch(54.83, 27.63, 226.30°)
OKLaboklab(60.3% -0.0715 -0.0557)
OKLCHoklch(60.3% 0.091 217.9)
XYZxyz(17.8270, 22.7644, 39.0445)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA5 #A54A33
analogous
#33A583 #338EA5 #3355A5
triadic
#338EA5 #A5338E #8EA533
tetradic
#338EA5 #8333A5 #A54A33 #55A533
square
#338EA5 #8333A5 #A54A33 #55A533
split-complementary
#338EA5 #A53355 #A58333
monochromatic
#163E48 #256676 #338EA5 #4DAFC8 #7CC4D6

Accessibility & contrast

On white

3.78
#338EA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#338EA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA5#FFFFFF#000000##000000
##338EA51.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8AA6
Deuteranopia (green-blind)
#6F7EA5
Tritanopia (blue-blind)
#009695
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea5;
/* rgb */ color: rgb(51, 142, 165);
/* oklch */ color: oklch(60.3% 0.091 217.9);
Tailwind
colors: {
  custom: {
    50: '#79afbf',
    500: '#338ea5',
    950: '#000000',
  },
}
SCSS
$custom: #338ea5;
$custom-light: #79afbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea5",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 165
  },
  "hsl": {
    "h": 192.105,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.60296,
    "c": 0.09063,
    "h": 217.9
  },
  "luminance": 0.22766
}

Semantic roles & 50–950 ramp

primary
#338EA5
secondary
#BF8475
accent
#694CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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