#338DA1#338DA1

#338DA1 is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 59.9% C 0.088 H 215.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#338DA1
RGBrgb(51, 141, 161)
HSLhsl(191, 52%, 42%)
HSVhsv(191, 68%, 63%)
CMYKcmyk(68.3%, 12.4%, 0%, 36.9%)
CIE-LABlab(54.37, -19.85, -18.37)
CIE-LCHlch(54.37, 27.05, 222.79°)
OKLaboklab(59.88% -0.0721 -0.0511)
OKLCHoklch(59.88% 0.088 215.3)
XYZxyz(17.3205, 22.3248, 37.1076)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DA1 #A14733
analogous
#33A17E #338DA1 #3356A1
triadic
#338DA1 #A1338D #8DA133
tetradic
#338DA1 #7E33A1 #A14733 #56A133
square
#338DA1 #7E33A1 #A14733 #56A133
split-complementary
#338DA1 #A13356 #A17E33
monochromatic
#163C44 #246473 #338DA1 #4BB0C6 #7AC4D5

Accessibility & contrast

On white

3.84
#338DA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#338DA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DA1
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DA1#FFFFFF#000000##000000
##338DA11.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F89A2
Deuteranopia (green-blind)
#6F7DA1
Tritanopia (blue-blind)
#009493
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338da1;
/* rgb */ color: rgb(51, 141, 161);
/* oklch */ color: oklch(59.9% 0.088 215.3);
Tailwind
colors: {
  custom: {
    50: '#79aebc',
    500: '#338da1',
    950: '#000000',
  },
}
SCSS
$custom: #338da1;
$custom-light: #79aebc;
$custom-dark: #000000;
JSON
{
  "hex": "#338da1",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 161
  },
  "hsl": {
    "h": 190.909,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.59878,
    "c": 0.0884,
    "h": 215.3
  },
  "luminance": 0.22327
}

Semantic roles & 50–950 ramp

primary
#338DA1
secondary
#BD8072
accent
#664CDB
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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