#338FB5#338FB5

#338FB5 is a mid, moderate cyan. Relative luminance 0.237; OKLCH L 61.3% C 0.102 H 229.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#338FB5
RGBrgb(51, 143, 181)
HSLhsl(198, 56%, 45%)
HSVhsv(198, 72%, 71%)
CMYKcmyk(71.8%, 21%, 0%, 29%)
CIE-LABlab(55.77, -14.33, -27.68)
CIE-LCHlch(55.77, 31.17, 242.63°)
OKLaboklab(61.26% -0.0664 -0.0776)
OKLCHoklch(61.26% 0.102 229.5)
XYZxyz(19.5248, 23.6827, 47.2493)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB5 #B55933
analogous
#33B59A #338FB5 #334EB5
triadic
#338FB5 #B5338F #8FB533
tetradic
#338FB5 #9A33B5 #B55933 #4EB533
square
#338FB5 #9A33B5 #B55933 #4EB533
split-complementary
#338FB5 #B5334E #B59A33
monochromatic
#184456 #266985 #338FB5 #56ACCF #86C3DD

Accessibility & contrast

On white

3.66
#338FB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#338FB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB5#FFFFFF#000000##000000
##338FB51.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8DB7
Deuteranopia (green-blind)
#6A80B4
Tritanopia (blue-blind)
#009A9C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #338fb5;
/* rgb */ color: rgb(51, 143, 181);
/* oklch */ color: oklch(61.3% 0.102 229.5);
Tailwind
colors: {
  custom: {
    50: '#7cafcb',
    500: '#338fb5',
    950: '#000000',
  },
}
SCSS
$custom: #338fb5;
$custom-light: #7cafcb;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb5",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 181
  },
  "hsl": {
    "h": 197.538,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.61259,
    "c": 0.10214,
    "h": 229.5
  },
  "luminance": 0.23685
}

Semantic roles & 50–950 ramp

primary
#338FB5
secondary
#C6937D
accent
#7548DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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