#338CB1#338CB1

#338CB1 is a mid, moderate cyan. Relative luminance 0.226; OKLCH L 60.3% C 0.100 H 229.5°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#338CB1
RGBrgb(51, 140, 177)
HSLhsl(198, 55%, 45%)
HSVhsv(198, 71%, 69%)
CMYKcmyk(71.2%, 20.9%, 0%, 30.6%)
CIE-LABlab(54.69, -14.02, -27.06)
CIE-LCHlch(54.69, 30.48, 242.61°)
OKLaboklab(60.34% -0.0648 -0.0759)
OKLCHoklch(60.34% 0.1 229.5)
XYZxyz(18.6759, 22.6322, 44.9706)
Luminance0.2263 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CB1 #B15833
analogous
#33B197 #338CB1 #334DB1
triadic
#338CB1 #B1338C #8CB133
tetradic
#338CB1 #9733B1 #B15833 #4DB133
square
#338CB1 #9733B1 #B15833 #4DB133
split-complementary
#338CB1 #B1334D #B19733
monochromatic
#184152 #256681 #338CB1 #54AACE #83C1DB

Accessibility & contrast

On white

3.80
#338CB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#338CB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CB1
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CB1#FFFFFF#000000##000000
##338CB11.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#798AB3
Deuteranopia (green-blind)
#687DB0
Tritanopia (blue-blind)
#009698
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338cb1;
/* rgb */ color: rgb(51, 140, 177);
/* oklch */ color: oklch(60.3% 0.100 229.5);
Tailwind
colors: {
  custom: {
    50: '#7badc8',
    500: '#338cb1',
    950: '#000000',
  },
}
SCSS
$custom: #338cb1;
$custom-light: #7badc8;
$custom-dark: #000000;
JSON
{
  "hex": "#338cb1",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 177
  },
  "hsl": {
    "h": 197.619,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.60344,
    "c": 0.09979,
    "h": 229.5
  },
  "luminance": 0.22634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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