#338BB1#338BB1

#338BB1 is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 60.1% C 0.100 H 230.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#338BB1
RGBrgb(51, 139, 177)
HSLhsl(198, 55%, 45%)
HSVhsv(198, 71%, 69%)
CMYKcmyk(71.2%, 21.5%, 0%, 30.6%)
CIE-LABlab(54.39, -13.47, -27.53)
CIE-LCHlch(54.39, 30.65, 243.93°)
OKLaboklab(60.1% -0.0638 -0.0773)
OKLCHoklch(60.1% 0.1 230.5)
XYZxyz(18.5305, 22.3413, 44.9221)
Luminance0.2234 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BB1 #B15933
analogous
#33B198 #338BB1 #334CB1
triadic
#338BB1 #B1338B #8BB133
tetradic
#338BB1 #9833B1 #B15933 #4CB133
square
#338BB1 #9833B1 #B15933 #4CB133
split-complementary
#338BB1 #B1334C #B19833
monochromatic
#184052 #256681 #338BB1 #54A9CE #83C1DB

Accessibility & contrast

On white

3.84
#338BB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#338BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BB1
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BB1#FFFFFF#000000##000000
##338BB11.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7889B3
Deuteranopia (green-blind)
#667DB0
Tritanopia (blue-blind)
#009598
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bb1;
/* rgb */ color: rgb(51, 139, 177);
/* oklch */ color: oklch(60.1% 0.100 230.5);
Tailwind
colors: {
  custom: {
    50: '#7bacc8',
    500: '#338bb1',
    950: '#000000',
  },
}
SCSS
$custom: #338bb1;
$custom-light: #7bacc8;
$custom-dark: #000000;
JSON
{
  "hex": "#338bb1",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 177
  },
  "hsl": {
    "h": 198.095,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.60101,
    "c": 0.10017,
    "h": 230.5
  },
  "luminance": 0.22343
}

Semantic roles & 50–950 ramp

primary
#338BB1
secondary
#C5917B
accent
#7649DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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