#338CBD#338CBD

#338CBD is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 60.9% C 0.111 H 237.0°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#338CBD
RGBrgb(51, 140, 189)
HSLhsl(201, 58%, 47%)
HSVhsv(201, 73%, 74%)
CMYKcmyk(73%, 25.9%, 0%, 25.9%)
CIE-LABlab(55.21, -9.91, -33.11)
CIE-LCHlch(55.21, 34.56, 253.34°)
OKLaboklab(60.93% -0.0605 -0.0933)
OKLCHoklch(60.93% 0.111 237)
XYZxyz(19.9250, 23.1318, 51.5490)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CBD #BD6433
analogous
#33BDA9 #338CBD #3347BD
triadic
#338CBD #BD338C #8CBD33
tetradic
#338CBD #A933BD #BD6433 #47BD33
square
#338CBD #A933BD #BD6433 #47BD33
split-complementary
#338CBD #BD3347 #BDA933
monochromatic
#19455D #26688D #338CBD #5BA8D3 #8BC2E0

Accessibility & contrast

On white

3.73
#338CBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#338CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CBD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CBD#FFFFFF#000000##000000
##338CBD1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#758CBF
Deuteranopia (green-blind)
#627EBC
Tritanopia (blue-blind)
#00999D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338cbd;
/* rgb */ color: rgb(51, 140, 189);
/* oklch */ color: oklch(60.9% 0.111 237.0);
Tailwind
colors: {
  custom: {
    50: '#7dadd1',
    500: '#338cbd',
    950: '#000000',
  },
}
SCSS
$custom: #338cbd;
$custom-light: #7dadd1;
$custom-dark: #000000;
JSON
{
  "hex": "#338cbd",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 189
  },
  "hsl": {
    "h": 201.304,
    "s": 57.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.60925,
    "c": 0.11124,
    "h": 237
  },
  "luminance": 0.23134
}

Semantic roles & 50–950 ramp

primary
#338CBD
secondary
#CA9C82
accent
#7E47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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