#338BB5#338BB5

#338BB5 is a mid, moderate cyan. Relative luminance 0.225; OKLCH L 60.3% C 0.104 H 233.1°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#338BB5
RGBrgb(51, 139, 181)
HSLhsl(199, 56%, 45%)
HSVhsv(199, 72%, 71%)
CMYKcmyk(71.8%, 23.2%, 0%, 29%)
CIE-LABlab(54.56, -12.10, -29.56)
CIE-LCHlch(54.56, 31.94, 247.73°)
OKLaboklab(60.29% -0.0623 -0.0831)
OKLCHoklch(60.29% 0.104 233.1)
XYZxyz(18.9350, 22.5031, 47.0527)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BB5 #B55D33
analogous
#33B59E #338BB5 #334AB5
triadic
#338BB5 #B5338B #8BB533
tetradic
#338BB5 #9E33B5 #B55D33 #4AB533
square
#338BB5 #9E33B5 #B55D33 #4AB533
split-complementary
#338BB5 #B5334A #B59E33
monochromatic
#184256 #266685 #338BB5 #56A8CF #86C1DD

Accessibility & contrast

On white

3.82
#338BB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#338BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BB5
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BB5#FFFFFF#000000##000000
##338BB51.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#768AB7
Deuteranopia (green-blind)
#657DB4
Tritanopia (blue-blind)
#009699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bb5;
/* rgb */ color: rgb(51, 139, 181);
/* oklch */ color: oklch(60.3% 0.104 233.1);
Tailwind
colors: {
  custom: {
    50: '#7baccb',
    500: '#338bb5',
    950: '#000000',
  },
}
SCSS
$custom: #338bb5;
$custom-light: #7baccb;
$custom-dark: #000000;
JSON
{
  "hex": "#338bb5",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 181
  },
  "hsl": {
    "h": 199.385,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.60292,
    "c": 0.10386,
    "h": 233.1
  },
  "luminance": 0.22505
}

Semantic roles & 50–950 ramp

primary
#338BB5
secondary
#C6957D
accent
#7948DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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