#338AB9#338AB9

#338AB9 is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 60.2% C 0.108 H 236.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#338AB9
RGBrgb(51, 138, 185)
HSLhsl(201, 57%, 46%)
HSVhsv(201, 72%, 73%)
CMYKcmyk(72.4%, 25.4%, 0%, 27.5%)
CIE-LABlab(54.43, -10.16, -32.04)
CIE-LCHlch(54.43, 33.61, 252.40°)
OKLaboklab(60.25% -0.0599 -0.0903)
OKLCHoklch(60.25% 0.108 236.4)
XYZxyz(19.2072, 22.3814, 49.1973)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB9 #B96233
analogous
#33B9A5 #338AB9 #3347B9
triadic
#338AB9 #B9338A #8AB933
tetradic
#338AB9 #A533B9 #B96233 #47B933
square
#338AB9 #A533B9 #B96233 #47B933
split-complementary
#338AB9 #B93347 #B9A533
monochromatic
#194259 #266689 #338AB9 #58A7D1 #88C0DE

Accessibility & contrast

On white

3.83
#338AB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#338AB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB9
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB9#FFFFFF#000000##000000
##338AB91.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7489BB
Deuteranopia (green-blind)
#617CB8
Tritanopia (blue-blind)
#00969A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ab9;
/* rgb */ color: rgb(51, 138, 185);
/* oklch */ color: oklch(60.2% 0.108 236.4);
Tailwind
colors: {
  custom: {
    50: '#7cacce',
    500: '#338ab9',
    950: '#000000',
  },
}
SCSS
$custom: #338ab9;
$custom-light: #7cacce;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab9",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 185
  },
  "hsl": {
    "h": 201.045,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.60248,
    "c": 0.10834,
    "h": 236.4
  },
  "luminance": 0.22384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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