#338FB8#338FB8

#338FB8 is a mid, moderate cyan. Relative luminance 0.238; OKLCH L 61.4% C 0.105 H 231.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#338FB8
RGBrgb(51, 143, 184)
HSLhsl(198, 57%, 46%)
HSVhsv(198, 72%, 72%)
CMYKcmyk(72.3%, 22.3%, 0%, 27.8%)
CIE-LABlab(55.89, -13.31, -29.19)
CIE-LCHlch(55.89, 32.08, 245.49°)
OKLaboklab(61.4% -0.0653 -0.082)
OKLCHoklch(61.4% 0.105 231.5)
XYZxyz(19.8360, 23.8072, 48.8879)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB8 #B85C33
analogous
#33B89E #338FB8 #334CB8
triadic
#338FB8 #B8338F #8FB833
tetradic
#338FB8 #9E33B8 #B85C33 #4CB833
square
#338FB8 #9E33B8 #B85C33 #4CB833
split-complementary
#338FB8 #B8334C #B89E33
monochromatic
#184558 #266A88 #338FB8 #58ABD1 #88C3DE

Accessibility & contrast

On white

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

On black

5.76
#338FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB8#FFFFFF#000000##000000
##338FB81.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338fb8;
/* rgb */ color: rgb(51, 143, 184);
/* oklch */ color: oklch(61.4% 0.105 231.5);
Tailwind
colors: {
  custom: {
    50: '#7cafcd',
    500: '#338fb8',
    950: '#000000',
  },
}
SCSS
$custom: #338fb8;
$custom-light: #7cafcd;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb8",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 184
  },
  "hsl": {
    "h": 198.496,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.614,
    "c": 0.10481,
    "h": 231.5
  },
  "luminance": 0.23809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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