#338FBF#338FBF

#338FBF is a mid, moderate cyan. Relative luminance 0.241; OKLCH L 61.7% C 0.112 H 235.7°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#338FBF
RGBrgb(51, 143, 191)
HSLhsl(201, 58%, 47%)
HSVhsv(201, 73%, 75%)
CMYKcmyk(73.3%, 25.1%, 0%, 25.1%)
CIE-LABlab(56.20, -10.91, -32.70)
CIE-LCHlch(56.20, 34.47, 251.55°)
OKLaboklab(61.74% -0.0628 -0.0921)
OKLCHoklch(61.74% 0.112 235.7)
XYZxyz(20.5879, 24.1079, 52.8484)
Luminance0.2411 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FBF #BF6333
analogous
#33BFA9 #338FBF #3349BF
triadic
#338FBF #BF338F #8FBF33
tetradic
#338FBF #A933BF #BF6333 #49BF33
square
#338FBF #A933BF #BF6333 #49BF33
split-complementary
#338FBF #BF3349 #BFA933
monochromatic
#19475E #266B8F #338FBF #5CAAD3 #8CC3E0

Accessibility & contrast

On white

3.61
#338FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#338FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FBF
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FBF#FFFFFF#000000##000000
##338FBF1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#788EC1
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#009B9F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #338fbf;
/* rgb */ color: rgb(51, 143, 191);
/* oklch */ color: oklch(61.7% 0.112 235.7);
Tailwind
colors: {
  custom: {
    50: '#7dafd2',
    500: '#338fbf',
    950: '#000000',
  },
}
SCSS
$custom: #338fbf;
$custom-light: #7dafd2;
$custom-dark: #000000;
JSON
{
  "hex": "#338fbf",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 191
  },
  "hsl": {
    "h": 200.571,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.6174,
    "c": 0.1115,
    "h": 235.7
  },
  "luminance": 0.2411
}

Semantic roles & 50–950 ramp

primary
#338FBF
secondary
#CB9C83
accent
#7C47E1
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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