#338CBF#338CBF

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

Color values

HEX#338CBF
RGBrgb(51, 140, 191)
HSLhsl(202, 58%, 47%)
HSVhsv(202, 73%, 75%)
CMYKcmyk(73.3%, 26.7%, 0%, 25.1%)
CIE-LABlab(55.30, -9.21, -34.10)
CIE-LCHlch(55.30, 35.32, 254.88°)
OKLaboklab(61.03% -0.0599 -0.0962)
OKLCHoklch(61.03% 0.113 238.1)
XYZxyz(20.1436, 23.2192, 52.7002)
Luminance0.2322 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CBF #BF6633
analogous
#33BFAC #338CBF #3346BF
triadic
#338CBF #BF338C #8CBF33
tetradic
#338CBF #AC33BF #BF6633 #46BF33
square
#338CBF #AC33BF #BF6633 #46BF33
split-complementary
#338CBF #BF3346 #BFAC33
monochromatic
#19455E #26698F #338CBF #5CA8D3 #8CC2E0

Accessibility & contrast

On white

3.72
#338CBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338CBF#FFFFFF#000000##000000
##338CBF1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#748CC1
Deuteranopia (green-blind)
#617EBE
Tritanopia (blue-blind)
#00999E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338cbf;
/* rgb */ color: rgb(51, 140, 191);
/* oklch */ color: oklch(61.0% 0.113 238.1);
Tailwind
colors: {
  custom: {
    50: '#7dadd2',
    500: '#338cbf',
    950: '#000000',
  },
}
SCSS
$custom: #338cbf;
$custom-light: #7dadd2;
$custom-dark: #000000;
JSON
{
  "hex": "#338cbf",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 191
  },
  "hsl": {
    "h": 201.857,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.61026,
    "c": 0.11331,
    "h": 238.1
  },
  "luminance": 0.23222
}

Semantic roles & 50–950 ramp

primary
#338CBF
secondary
#CB9D83
accent
#7F47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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