#338CBE#338CBE

#338CBE is a mid, moderate cyan. Relative luminance 0.232; OKLCH L 61.0% C 0.112 H 237.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#338CBE
RGBrgb(51, 140, 190)
HSLhsl(202, 58%, 47%)
HSVhsv(202, 73%, 75%)
CMYKcmyk(73.2%, 26.3%, 0%, 25.5%)
CIE-LABlab(55.25, -9.56, -33.60)
CIE-LCHlch(55.25, 34.94, 254.12°)
OKLaboklab(60.98% -0.0602 -0.0948)
OKLCHoklch(60.98% 0.112 237.6)
XYZxyz(20.0339, 23.1754, 52.1227)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CBE #BE6533
analogous
#33BEAB #338CBE #3346BE
triadic
#338CBE #BE338C #8CBE33
tetradic
#338CBE #AB33BE #BE6533 #46BE33
square
#338CBE #AB33BE #BE6533 #46BE33
split-complementary
#338CBE #BE3346 #BEAB33
monochromatic
#19455E #26688E #338CBE #5BA8D3 #8BC2E0

Accessibility & contrast

On white

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

On black

5.64
#338CBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CBE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CBE#FFFFFF#000000##000000
##338CBE1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#748CC0
Deuteranopia (green-blind)
#617EBD
Tritanopia (blue-blind)
#00999D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338cbe;
/* rgb */ color: rgb(51, 140, 190);
/* oklch */ color: oklch(61.0% 0.112 237.6);
Tailwind
colors: {
  custom: {
    50: '#7dadd2',
    500: '#338cbe',
    950: '#000000',
  },
}
SCSS
$custom: #338cbe;
$custom-light: #7dadd2;
$custom-dark: #000000;
JSON
{
  "hex": "#338cbe",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 190
  },
  "hsl": {
    "h": 201.583,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.60976,
    "c": 0.11227,
    "h": 237.6
  },
  "luminance": 0.23178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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