#338FA8#338FA8

#338FA8 is a mid, moderate cyan. Relative luminance 0.232; OKLCH L 60.7% C 0.092 H 219.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#338FA8
RGBrgb(51, 143, 168)
HSLhsl(193, 53%, 43%)
HSVhsv(193, 70%, 66%)
CMYKcmyk(69.6%, 14.9%, 0%, 34.1%)
CIE-LABlab(55.25, -18.65, -21.05)
CIE-LCHlch(55.25, 28.12, 228.46°)
OKLaboklab(60.67% -0.0714 -0.0587)
OKLCHoklch(60.67% 0.092 219.4)
XYZxyz(18.2527, 23.1738, 40.5492)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA8 #A84C33
analogous
#33A887 #338FA8 #3354A8
triadic
#338FA8 #A8338F #8FA833
tetradic
#338FA8 #8733A8 #A84C33 #54A833
square
#338FA8 #8733A8 #A84C33 #54A833
split-complementary
#338FA8 #A83354 #A88733
monochromatic
#163F4A #256779 #338FA8 #4FAFC9 #7EC4D8

Accessibility & contrast

On white

3.73
#338FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#338FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA8
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA8#FFFFFF#000000##000000
##338FA81.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8BA9
Deuteranopia (green-blind)
#6F7FA8
Tritanopia (blue-blind)
#009797
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338fa8;
/* rgb */ color: rgb(51, 143, 168);
/* oklch */ color: oklch(60.7% 0.092 219.4);
Tailwind
colors: {
  custom: {
    50: '#7ab0c2',
    500: '#338fa8',
    950: '#000000',
  },
}
SCSS
$custom: #338fa8;
$custom-light: #7ab0c2;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa8",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 168
  },
  "hsl": {
    "h": 192.821,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.60673,
    "c": 0.09241,
    "h": 219.4
  },
  "luminance": 0.23176
}

Semantic roles & 50–950 ramp

primary
#338FA8
secondary
#C18676
accent
#6A4BDD
background
#F8FAFB
surface
#EFF4F7
border
#CACED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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