#338FB2#338FB2

#338FB2 is a mid, moderate cyan. Relative luminance 0.236; OKLCH L 61.1% C 0.100 H 227.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#338FB2
RGBrgb(51, 143, 178)
HSLhsl(197, 55%, 45%)
HSVhsv(197, 71%, 70%)
CMYKcmyk(71.3%, 19.7%, 0%, 30.2%)
CIE-LABlab(55.65, -15.34, -26.16)
CIE-LCHlch(55.65, 30.32, 239.62°)
OKLaboklab(61.12% -0.0675 -0.0733)
OKLCHoklch(61.12% 0.1 227.4)
XYZxyz(19.2203, 23.5609, 45.6456)
Luminance0.2356 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB2 #B25633
analogous
#33B295 #338FB2 #3350B2
triadic
#338FB2 #B2338F #8FB233
tetradic
#338FB2 #9533B2 #B25633 #50B233
square
#338FB2 #9533B2 #B25633 #50B233
split-complementary
#338FB2 #B23350 #B29533
monochromatic
#184353 #256982 #338FB2 #54ACCE #84C3DC

Accessibility & contrast

On white

3.68
#338FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#338FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB2#FFFFFF#000000##000000
##338FB21.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8CB4
Deuteranopia (green-blind)
#6B80B2
Tritanopia (blue-blind)
#00999A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338fb2;
/* rgb */ color: rgb(51, 143, 178);
/* oklch */ color: oklch(61.1% 0.100 227.4);
Tailwind
colors: {
  custom: {
    50: '#7bafc9',
    500: '#338fb2',
    950: '#000000',
  },
}
SCSS
$custom: #338fb2;
$custom-light: #7bafc9;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb2",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 178
  },
  "hsl": {
    "h": 196.535,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.6112,
    "c": 0.09962,
    "h": 227.4
  },
  "luminance": 0.23563
}

Semantic roles & 50–950 ramp

primary
#338FB2
secondary
#C5907C
accent
#7249DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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