#338FBB#338FBB

#338FBB is a mid, moderate cyan. Relative luminance 0.239; OKLCH L 61.5% C 0.108 H 233.4°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#338FBB
RGBrgb(51, 143, 187)
HSLhsl(199, 57%, 47%)
HSVhsv(199, 73%, 73%)
CMYKcmyk(72.7%, 23.5%, 0%, 26.7%)
CIE-LABlab(56.02, -12.28, -30.70)
CIE-LCHlch(56.02, 33.07, 248.19°)
OKLaboklab(61.54% -0.0642 -0.0863)
OKLCHoklch(61.54% 0.108 233.4)
XYZxyz(20.1538, 23.9343, 50.5617)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FBB #BB5F33
analogous
#33BBA3 #338FBB #334BBB
triadic
#338FBB #BB338F #8FBB33
tetradic
#338FBB #A333BB #BB5F33 #4BBB33
square
#338FBB #A333BB #BB5F33 #4BBB33
split-complementary
#338FBB #BB334B #BBA333
monochromatic
#19455B #266A8B #338FBB #59ABD2 #89C3DF

Accessibility & contrast

On white

3.63
#338FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#338FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FBB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FBB#FFFFFF#000000##000000
##338FBB1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#798EBD
Deuteranopia (green-blind)
#6780BA
Tritanopia (blue-blind)
#009B9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338fbb;
/* rgb */ color: rgb(51, 143, 187);
/* oklch */ color: oklch(61.5% 0.108 233.4);
Tailwind
colors: {
  custom: {
    50: '#7dafcf',
    500: '#338fbb',
    950: '#000000',
  },
}
SCSS
$custom: #338fbb;
$custom-light: #7dafcf;
$custom-dark: #000000;
JSON
{
  "hex": "#338fbb",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 187
  },
  "hsl": {
    "h": 199.412,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.61544,
    "c": 0.10759,
    "h": 233.4
  },
  "luminance": 0.23937
}

Semantic roles & 50–950 ramp

primary
#338FBB
secondary
#C99881
accent
#7947E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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