#338CA1#338CA1

#338CA1 is a mid, moderate cyan. Relative luminance 0.220; OKLCH L 59.6% C 0.088 H 216.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#338CA1
RGBrgb(51, 140, 161)
HSLhsl(191, 52%, 42%)
HSVhsv(191, 68%, 63%)
CMYKcmyk(68.3%, 13%, 0%, 36.9%)
CIE-LABlab(54.06, -19.31, -18.85)
CIE-LCHlch(54.06, 26.99, 224.30°)
OKLaboklab(59.63% -0.071 -0.0525)
OKLCHoklch(59.63% 0.088 216.5)
XYZxyz(17.1737, 22.0313, 37.0587)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA1 #A14833
analogous
#33A17F #338CA1 #3355A1
triadic
#338CA1 #A1338C #8CA133
tetradic
#338CA1 #7F33A1 #A14833 #55A133
square
#338CA1 #7F33A1 #A14833 #55A133
split-complementary
#338CA1 #A13355 #A17F33
monochromatic
#163B44 #246473 #338CA1 #4BAFC6 #7AC3D5

Accessibility & contrast

On white

3.88
#338CA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#338CA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA1#FFFFFF#000000##000000
##338CA11.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E88A2
Deuteranopia (green-blind)
#6E7CA1
Tritanopia (blue-blind)
#009493
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ca1;
/* rgb */ color: rgb(51, 140, 161);
/* oklch */ color: oklch(59.6% 0.088 216.5);
Tailwind
colors: {
  custom: {
    50: '#79adbc',
    500: '#338ca1',
    950: '#000000',
  },
}
SCSS
$custom: #338ca1;
$custom-light: #79adbc;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca1",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 161
  },
  "hsl": {
    "h": 191.455,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.59629,
    "c": 0.08832,
    "h": 216.5
  },
  "luminance": 0.22033
}

Semantic roles & 50–950 ramp

primary
#338CA1
secondary
#BD8172
accent
#684CDB
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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