#338FA1#338FA1

#338FA1 is a mid, moderate teal. Relative luminance 0.229; OKLCH L 60.4% C 0.089 H 213.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#338FA1
RGBrgb(51, 143, 161)
HSLhsl(190, 52%, 42%)
HSVhsv(190, 68%, 63%)
CMYKcmyk(68.3%, 11.2%, 0%, 36.9%)
CIE-LABlab(54.99, -20.90, -17.43)
CIE-LCHlch(54.99, 27.22, 219.82°)
OKLaboklab(60.38% -0.0742 -0.0485)
OKLCHoklch(60.38% 0.089 213.1)
XYZxyz(17.6180, 22.9200, 37.2068)
Luminance0.2292 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA1 #A14533
analogous
#33A17C #338FA1 #3358A1
triadic
#338FA1 #A1338F #8FA133
tetradic
#338FA1 #7C33A1 #A14533 #58A133
square
#338FA1 #7C33A1 #A14533 #58A133
split-complementary
#338FA1 #A13358 #A17C33
monochromatic
#163C44 #246673 #338FA1 #4BB2C6 #7AC6D5

Accessibility & contrast

On white

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

On black

5.58
#338FA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA1
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA1#FFFFFF#000000##000000
##338FA11.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#818AA2
Deuteranopia (green-blind)
#727FA1
Tritanopia (blue-blind)
#009695
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338fa1;
/* rgb */ color: rgb(51, 143, 161);
/* oklch */ color: oklch(60.4% 0.089 213.1);
Tailwind
colors: {
  custom: {
    50: '#79b0bc',
    500: '#338fa1',
    950: '#000000',
  },
}
SCSS
$custom: #338fa1;
$custom-light: #79b0bc;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa1",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 161
  },
  "hsl": {
    "h": 189.818,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.60377,
    "c": 0.08865,
    "h": 213.1
  },
  "luminance": 0.22922
}

Semantic roles & 50–950 ramp

primary
#338FA1
secondary
#BD7F72
accent
#644CDB
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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