#338BBA#338BBA

#338BBA is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.5% C 0.109 H 236.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#338BBA
RGBrgb(51, 139, 186)
HSLhsl(201, 57%, 46%)
HSVhsv(201, 73%, 73%)
CMYKcmyk(72.6%, 25.3%, 0%, 27.1%)
CIE-LABlab(54.77, -10.38, -32.07)
CIE-LCHlch(54.77, 33.71, 252.06°)
OKLaboklab(60.54% -0.0606 -0.0903)
OKLCHoklch(60.54% 0.109 236.2)
XYZxyz(19.4573, 22.7120, 49.8033)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BBA #BA6233
analogous
#33BAA6 #338BBA #3348BA
triadic
#338BBA #BA338B #8BBA33
tetradic
#338BBA #A633BA #BA6233 #48BA33
square
#338BBA #A633BA #BA6233 #48BA33
split-complementary
#338BBA #BA3348 #BAA633
monochromatic
#19435A #26678A #338BBA #59A7D1 #89C1DF

Accessibility & contrast

On white

3.79
#338BBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#338BBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BBA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BBA#FFFFFF#000000##000000
##338BBA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#748ABC
Deuteranopia (green-blind)
#627DB9
Tritanopia (blue-blind)
#00979B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338bba;
/* rgb */ color: rgb(51, 139, 186);
/* oklch */ color: oklch(60.5% 0.109 236.2);
Tailwind
colors: {
  custom: {
    50: '#7caccf',
    500: '#338bba',
    950: '#000000',
  },
}
SCSS
$custom: #338bba;
$custom-light: #7caccf;
$custom-dark: #000000;
JSON
{
  "hex": "#338bba",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 186
  },
  "hsl": {
    "h": 200.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.60537,
    "c": 0.10877,
    "h": 236.2
  },
  "luminance": 0.22714
}

Semantic roles & 50–950 ramp

primary
#338BBA
secondary
#C99980
accent
#7D48E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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