#338BAA#338BAA

#338BAA is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.8% C 0.094 H 225.3°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#338BAA
RGBrgb(51, 139, 170)
HSLhsl(196, 54%, 43%)
HSVhsv(196, 70%, 67%)
CMYKcmyk(70%, 18.2%, 0%, 33.3%)
CIE-LABlab(54.10, -15.82, -23.96)
CIE-LCHlch(54.10, 28.71, 236.56°)
OKLaboklab(59.78% -0.0664 -0.067)
OKLCHoklch(59.78% 0.094 225.3)
XYZxyz(17.8506, 22.0693, 41.3415)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BAA #AA5233
analogous
#33AA8D #338BAA #334FAA
triadic
#338BAA #AA338B #8BAA33
tetradic
#338BAA #8D33AA #AA5233 #4FAA33
square
#338BAA #8D33AA #AA5233 #4FAA33
split-complementary
#338BAA #AA334F #AA8D33
monochromatic
#173E4C #25657B #338BAA #50AACA #7FC1D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338BAA#FFFFFF#000000##000000
##338BAA1.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)
#7A88AC
Deuteranopia (green-blind)
#6A7CAA
Tritanopia (blue-blind)
#009495
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338baa;
/* rgb */ color: rgb(51, 139, 170);
/* oklch */ color: oklch(59.8% 0.094 225.3);
Tailwind
colors: {
  custom: {
    50: '#7aadc3',
    500: '#338baa',
    950: '#000000',
  },
}
SCSS
$custom: #338baa;
$custom-light: #7aadc3;
$custom-dark: #000000;
JSON
{
  "hex": "#338baa",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 170
  },
  "hsl": {
    "h": 195.63,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.59777,
    "c": 0.09434,
    "h": 225.3
  },
  "luminance": 0.22071
}

Semantic roles & 50–950 ramp

primary
#338BAA
secondary
#C28B77
accent
#714BDD
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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