#338FAA#338FAA

#338FAA is a mid, moderate cyan. Relative luminance 0.233; OKLCH L 60.8% C 0.094 H 221.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#338FAA
RGBrgb(51, 143, 170)
HSLhsl(194, 54%, 43%)
HSVhsv(194, 70%, 67%)
CMYKcmyk(70%, 15.9%, 0%, 33.3%)
CIE-LABlab(55.33, -17.99, -22.07)
CIE-LCHlch(55.33, 28.48, 230.82°)
OKLaboklab(60.76% -0.0706 -0.0616)
OKLCHoklch(60.76% 0.094 221.1)
XYZxyz(18.4404, 23.2489, 41.5381)
Luminance0.2325 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FAA #AA4E33
analogous
#33AA89 #338FAA #3354AA
triadic
#338FAA #AA338F #8FAA33
tetradic
#338FAA #8933AA #AA4E33 #54AA33
square
#338FAA #8933AA #AA4E33 #54AA33
split-complementary
#338FAA #AA3354 #AA8933
monochromatic
#17404C #25677B #338FAA #50AFCA #7FC4D9

Accessibility & contrast

On white

3.72
#338FAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#338FAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FAA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FAA#FFFFFF#000000##000000
##338FAA1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8BAB
Deuteranopia (green-blind)
#6E7FAA
Tritanopia (blue-blind)
#009898
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338faa;
/* rgb */ color: rgb(51, 143, 170);
/* oklch */ color: oklch(60.8% 0.094 221.1);
Tailwind
colors: {
  custom: {
    50: '#7ab0c3',
    500: '#338faa',
    950: '#000000',
  },
}
SCSS
$custom: #338faa;
$custom-light: #7ab0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#338faa",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 170
  },
  "hsl": {
    "h": 193.613,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.6076,
    "c": 0.09369,
    "h": 221.1
  },
  "luminance": 0.23251
}

Semantic roles & 50–950 ramp

primary
#338FAA
secondary
#C28877
accent
#6C4BDD
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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