#338FB3#338FB3

#338FB3 is a mid, moderate cyan. Relative luminance 0.236; OKLCH L 61.2% C 0.100 H 228.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#338FB3
RGBrgb(51, 143, 179)
HSLhsl(197, 56%, 45%)
HSVhsv(197, 72%, 70%)
CMYKcmyk(71.5%, 20.1%, 0%, 29.8%)
CIE-LABlab(55.69, -15.00, -26.67)
CIE-LCHlch(55.69, 30.60, 240.64°)
OKLaboklab(61.17% -0.0671 -0.0747)
OKLCHoklch(61.17% 0.1 228.1)
XYZxyz(19.3211, 23.6012, 46.1763)
Luminance0.2360 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB3 #B35733
analogous
#33B397 #338FB3 #334FB3
triadic
#338FB3 #B3338F #8FB333
tetradic
#338FB3 #9733B3 #B35733 #4FB333
square
#338FB3 #9733B3 #B35733 #4FB333
split-complementary
#338FB3 #B3334F #B39733
monochromatic
#184354 #256983 #338FB3 #55ACCE #84C3DC

Accessibility & contrast

On white

3.67
#338FB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#338FB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB3#FFFFFF#000000##000000
##338FB31.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8DB5
Deuteranopia (green-blind)
#6B80B3
Tritanopia (blue-blind)
#00999B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338fb3;
/* rgb */ color: rgb(51, 143, 179);
/* oklch */ color: oklch(61.2% 0.100 228.1);
Tailwind
colors: {
  custom: {
    50: '#7bafca',
    500: '#338fb3',
    950: '#000000',
  },
}
SCSS
$custom: #338fb3;
$custom-light: #7bafca;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb3",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 179
  },
  "hsl": {
    "h": 196.875,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.61166,
    "c": 0.10044,
    "h": 228.1
  },
  "luminance": 0.23603
}

Semantic roles & 50–950 ramp

primary
#338FB3
secondary
#C6917C
accent
#7349DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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