#338AB5#338AB5

#338AB5 is a mid, moderate cyan. Relative luminance 0.222; OKLCH L 60.1% C 0.104 H 234.0°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#338AB5
RGBrgb(51, 138, 181)
HSLhsl(200, 56%, 45%)
HSVhsv(200, 72%, 71%)
CMYKcmyk(71.8%, 23.8%, 0%, 29%)
CIE-LABlab(54.25, -11.54, -30.03)
CIE-LCHlch(54.25, 32.17, 248.97°)
OKLaboklab(60.05% -0.0613 -0.0844)
OKLCHoklch(60.05% 0.104 234)
XYZxyz(18.7909, 22.2148, 47.0047)
Luminance0.2222 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB5 #B55E33
analogous
#33B59F #338AB5 #3349B5
triadic
#338AB5 #B5338A #8AB533
tetradic
#338AB5 #9F33B5 #B55E33 #49B533
square
#338AB5 #9F33B5 #B55E33 #49B533
split-complementary
#338AB5 #B53349 #B59F33
monochromatic
#184156 #266685 #338AB5 #56A7CF #86C0DD

Accessibility & contrast

On white

3.86
#338AB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#338AB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB5#FFFFFF#000000##000000
##338AB51.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7589B7
Deuteranopia (green-blind)
#637CB4
Tritanopia (blue-blind)
#009599
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ab5;
/* rgb */ color: rgb(51, 138, 181);
/* oklch */ color: oklch(60.1% 0.104 234.0);
Tailwind
colors: {
  custom: {
    50: '#7baccb',
    500: '#338ab5',
    950: '#000000',
  },
}
SCSS
$custom: #338ab5;
$custom-light: #7baccb;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab5",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 181
  },
  "hsl": {
    "h": 199.846,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.60051,
    "c": 0.10436,
    "h": 234
  },
  "luminance": 0.22217
}

Semantic roles & 50–950 ramp

primary
#338AB5
secondary
#C6967D
accent
#7A48DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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