#338EAF#338EAF

#338EAF is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 60.7% C 0.097 H 226.1°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#338EAF
RGBrgb(51, 142, 175)
HSLhsl(196, 55%, 44%)
HSVhsv(196, 71%, 69%)
CMYKcmyk(70.9%, 18.9%, 0%, 31.4%)
CIE-LABlab(55.22, -15.79, -25.10)
CIE-LCHlch(55.22, 29.66, 237.82°)
OKLaboklab(60.74% -0.0676 -0.0703)
OKLCHoklch(60.74% 0.097 226.1)
XYZxyz(18.7730, 23.1428, 44.0268)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EAF #AF5433
analogous
#33AF92 #338EAF #3350AF
triadic
#338EAF #AF338E #8EAF33
tetradic
#338EAF #9233AF #AF5433 #50AF33
square
#338EAF #9233AF #AF5433 #50AF33
split-complementary
#338EAF #AF3350 #AF9233
monochromatic
#174150 #256880 #338EAF #52ACCD #82C3DB

Accessibility & contrast

On white

3.73
#338EAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#338EAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EAF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EAF#FFFFFF#000000##000000
##338EAF1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8BB1
Deuteranopia (green-blind)
#6B7FAF
Tritanopia (blue-blind)
#009899
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338eaf;
/* rgb */ color: rgb(51, 142, 175);
/* oklch */ color: oklch(60.7% 0.097 226.1);
Tailwind
colors: {
  custom: {
    50: '#7bafc7',
    500: '#338eaf',
    950: '#000000',
  },
}
SCSS
$custom: #338eaf;
$custom-light: #7bafc7;
$custom-dark: #000000;
JSON
{
  "hex": "#338eaf",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 175
  },
  "hsl": {
    "h": 195.968,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.60738,
    "c": 0.09749,
    "h": 226.1
  },
  "luminance": 0.23145
}

Semantic roles & 50–950 ramp

primary
#338EAF
secondary
#C48E7A
accent
#714ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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