#338FB1#338FB1

#338FB1 is a mid, moderate cyan. Relative luminance 0.235; OKLCH L 61.1% C 0.099 H 226.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#338FB1
RGBrgb(51, 143, 177)
HSLhsl(196, 55%, 45%)
HSVhsv(196, 71%, 69%)
CMYKcmyk(71.2%, 19.2%, 0%, 30.6%)
CIE-LABlab(55.60, -15.67, -25.65)
CIE-LCHlch(55.60, 30.06, 238.57°)
OKLaboklab(61.07% -0.0678 -0.0718)
OKLCHoklch(61.07% 0.099 226.6)
XYZxyz(19.1203, 23.5209, 45.1187)
Luminance0.2352 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FB1 #B15533
analogous
#33B194 #338FB1 #3350B1
triadic
#338FB1 #B1338F #8FB133
tetradic
#338FB1 #9433B1 #B15533 #50B133
square
#338FB1 #9433B1 #B15533 #50B133
split-complementary
#338FB1 #B13350 #B19433
monochromatic
#184252 #256981 #338FB1 #54ADCE #83C4DB

Accessibility & contrast

On white

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

On black

5.70
#338FB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FB1
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FB1#FFFFFF#000000##000000
##338FB11.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338fb1;
/* rgb */ color: rgb(51, 143, 177);
/* oklch */ color: oklch(61.1% 0.099 226.6);
Tailwind
colors: {
  custom: {
    50: '#7bafc8',
    500: '#338fb1',
    950: '#000000',
  },
}
SCSS
$custom: #338fb1;
$custom-light: #7bafc8;
$custom-dark: #000000;
JSON
{
  "hex": "#338fb1",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 177
  },
  "hsl": {
    "h": 196.19,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.61074,
    "c": 0.09882,
    "h": 226.6
  },
  "luminance": 0.23523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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