#338FBA#338FBA

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

Color values

HEX#338FBA
RGBrgb(51, 143, 186)
HSLhsl(199, 57%, 46%)
HSVhsv(199, 73%, 73%)
CMYKcmyk(72.6%, 23.1%, 0%, 27.1%)
CIE-LABlab(55.98, -12.63, -30.20)
CIE-LCHlch(55.98, 32.73, 247.31°)
OKLaboklab(61.5% -0.0645 -0.0849)
OKLCHoklch(61.5% 0.107 232.8)
XYZxyz(20.0471, 23.8916, 49.9999)
Luminance0.2389 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FBA #BA5E33
analogous
#33BAA2 #338FBA #334CBA
triadic
#338FBA #BA338F #8FBA33
tetradic
#338FBA #A233BA #BA5E33 #4CBA33
square
#338FBA #A233BA #BA5E33 #4CBA33
split-complementary
#338FBA #BA334C #BAA233
monochromatic
#19455A #266A8A #338FBA #59ABD1 #89C3DF

Accessibility & contrast

On white

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

On black

5.78
#338FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FBA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FBA#FFFFFF#000000##000000
##338FBA1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8EBC
Deuteranopia (green-blind)
#6780B9
Tritanopia (blue-blind)
#009B9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338fba;
/* rgb */ color: rgb(51, 143, 186);
/* oklch */ color: oklch(61.5% 0.107 232.8);
Tailwind
colors: {
  custom: {
    50: '#7cafcf',
    500: '#338fba',
    950: '#000000',
  },
}
SCSS
$custom: #338fba;
$custom-light: #7cafcf;
$custom-dark: #000000;
JSON
{
  "hex": "#338fba",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 186
  },
  "hsl": {
    "h": 199.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.61496,
    "c": 0.10665,
    "h": 232.8
  },
  "luminance": 0.23894
}

Semantic roles & 50–950 ramp

primary
#338FBA
secondary
#C99780
accent
#7848E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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