#338EA1#338EA1

#338EA1 is a mid, moderate cyan. Relative luminance 0.226; OKLCH L 60.1% C 0.088 H 214.2°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#338EA1
RGBrgb(51, 142, 161)
HSLhsl(190, 52%, 42%)
HSVhsv(190, 68%, 63%)
CMYKcmyk(68.3%, 11.8%, 0%, 36.9%)
CIE-LABlab(54.68, -20.38, -17.90)
CIE-LCHlch(54.68, 27.12, 221.30°)
OKLaboklab(60.13% -0.0732 -0.0498)
OKLCHoklch(60.13% 0.089 214.2)
XYZxyz(17.4686, 22.6211, 37.1570)
Luminance0.2262 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA1 #A14633
analogous
#33A17D #338EA1 #3357A1
triadic
#338EA1 #A1338E #8EA133
tetradic
#338EA1 #7D33A1 #A14633 #57A133
square
#338EA1 #7D33A1 #A14633 #57A133
split-complementary
#338EA1 #A13357 #A17D33
monochromatic
#163C44 #246573 #338EA1 #4BB1C6 #7AC5D5

Accessibility & contrast

On white

3.80
#338EA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#338EA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA1
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA1#FFFFFF#000000##000000
##338EA11.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8089A2
Deuteranopia (green-blind)
#717EA1
Tritanopia (blue-blind)
#009594
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea1;
/* rgb */ color: rgb(51, 142, 161);
/* oklch */ color: oklch(60.1% 0.088 214.2);
Tailwind
colors: {
  custom: {
    50: '#79afbc',
    500: '#338ea1',
    950: '#000000',
  },
}
SCSS
$custom: #338ea1;
$custom-light: #79afbc;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea1",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 161
  },
  "hsl": {
    "h": 190.364,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.60127,
    "c": 0.0885,
    "h": 214.2
  },
  "luminance": 0.22623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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