#338EB5#338EB5

#338EB5 is a mid, moderate cyan. Relative luminance 0.234; OKLCH L 61.0% C 0.103 H 230.4°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#338EB5
RGBrgb(51, 142, 181)
HSLhsl(198, 56%, 45%)
HSVhsv(198, 72%, 71%)
CMYKcmyk(71.8%, 21.5%, 0%, 29%)
CIE-LABlab(55.47, -13.77, -28.15)
CIE-LCHlch(55.47, 31.34, 243.92°)
OKLaboklab(61.02% -0.0653 -0.079)
OKLCHoklch(61.02% 0.103 230.4)
XYZxyz(19.3754, 23.3838, 47.1995)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EB5 #B55A33
analogous
#33B59B #338EB5 #334DB5
triadic
#338EB5 #B5338E #8EB533
tetradic
#338EB5 #9B33B5 #B55A33 #4DB533
square
#338EB5 #9B33B5 #B55A33 #4DB533
split-complementary
#338EB5 #B5334D #B59B33
monochromatic
#184356 #266985 #338EB5 #56ABCF #86C3DD

Accessibility & contrast

On white

3.70
#338EB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#338EB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EB5
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EB5#FFFFFF#000000##000000
##338EB51.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8CB7
Deuteranopia (green-blind)
#687FB4
Tritanopia (blue-blind)
#00999B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338eb5;
/* rgb */ color: rgb(51, 142, 181);
/* oklch */ color: oklch(61.0% 0.103 230.4);
Tailwind
colors: {
  custom: {
    50: '#7cafcb',
    500: '#338eb5',
    950: '#000000',
  },
}
SCSS
$custom: #338eb5;
$custom-light: #7cafcb;
$custom-dark: #000000;
JSON
{
  "hex": "#338eb5",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 181
  },
  "hsl": {
    "h": 198,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.61017,
    "c": 0.10253,
    "h": 230.4
  },
  "luminance": 0.23386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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