#338FA2#338FA2

#338FA2 is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 60.4% C 0.089 H 214.1°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#338FA2
RGBrgb(51, 143, 162)
HSLhsl(190, 52%, 42%)
HSVhsv(190, 69%, 64%)
CMYKcmyk(68.5%, 11.7%, 0%, 36.5%)
CIE-LABlab(55.03, -20.58, -17.95)
CIE-LCHlch(55.03, 27.31, 221.08°)
OKLaboklab(60.42% -0.0738 -0.0499)
OKLCHoklch(60.42% 0.089 214.1)
XYZxyz(17.7066, 22.9554, 37.6731)
Luminance0.2296 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA2 #A24633
analogous
#33A27E #338FA2 #3358A2
triadic
#338FA2 #A2338F #8FA233
tetradic
#338FA2 #7E33A2 #A24633 #58A233
square
#338FA2 #7E33A2 #A24633 #58A233
split-complementary
#338FA2 #A23358 #A27E33
monochromatic
#163D45 #246673 #338FA2 #4CB2C7 #7AC6D5

Accessibility & contrast

On white

3.76
#338FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#338FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA2#FFFFFF#000000##000000
##338FA21.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#818AA3
Deuteranopia (green-blind)
#717FA2
Tritanopia (blue-blind)
#009695
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338fa2;
/* rgb */ color: rgb(51, 143, 162);
/* oklch */ color: oklch(60.4% 0.089 214.1);
Tailwind
colors: {
  custom: {
    50: '#79b0bd',
    500: '#338fa2',
    950: '#000000',
  },
}
SCSS
$custom: #338fa2;
$custom-light: #79b0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa2",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 162
  },
  "hsl": {
    "h": 190.27,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.60418,
    "c": 0.08911,
    "h": 214.1
  },
  "luminance": 0.22957
}

Semantic roles & 50–950 ramp

primary
#338FA2
secondary
#BE8073
accent
#654CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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