#338FB9#338FB9

#338FB9 is a mid, moderate cyan. Relative luminance 0.239; OKLCH L 61.4% C 0.106 H 232.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#338FB9
RGBrgb(51, 143, 185)
HSLhsl(199, 57%, 46%)
HSVhsv(199, 72%, 73%)
CMYKcmyk(72.4%, 22.7%, 0%, 27.5%)
CIE-LABlab(55.94, -12.97, -29.70)
CIE-LCHlch(55.94, 32.40, 246.41°)
OKLaboklab(61.45% -0.0649 -0.0835)
OKLCHoklch(61.45% 0.106 232.1)
XYZxyz(19.9412, 23.8492, 49.4419)
Luminance0.2385 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB9 #B95D33
analogous
#33B9A0 #338FB9 #334CB9
triadic
#338FB9 #B9338F #8FB933
tetradic
#338FB9 #A033B9 #B95D33 #4CB933
square
#338FB9 #A033B9 #B95D33 #4CB933
split-complementary
#338FB9 #B9334C #B9A033
monochromatic
#194559 #266A89 #338FB9 #58ABD1 #88C3DE

Accessibility & contrast

On white

3.64
#338FB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#338FB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB9
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB9#FFFFFF#000000##000000
##338FB91.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8DBB
Deuteranopia (green-blind)
#6880B8
Tritanopia (blue-blind)
#009A9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338fb9;
/* rgb */ color: rgb(51, 143, 185);
/* oklch */ color: oklch(61.4% 0.106 232.1);
Tailwind
colors: {
  custom: {
    50: '#7cafce',
    500: '#338fb9',
    950: '#000000',
  },
}
SCSS
$custom: #338fb9;
$custom-light: #7cafce;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb9",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 185
  },
  "hsl": {
    "h": 198.806,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.61448,
    "c": 0.10572,
    "h": 232.1
  },
  "luminance": 0.23852
}

Semantic roles & 50–950 ramp

primary
#338FB9
secondary
#C89680
accent
#7748E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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