#338FAC#338FAC

#338FAC is a mid, moderate cyan. Relative luminance 0.233; OKLCH L 60.8% C 0.095 H 222.8°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#338FAC
RGBrgb(51, 143, 172)
HSLhsl(194, 54%, 44%)
HSVhsv(194, 70%, 67%)
CMYKcmyk(70.3%, 16.9%, 0%, 32.5%)
CIE-LABlab(55.41, -17.33, -23.10)
CIE-LCHlch(55.41, 28.88, 233.11°)
OKLaboklab(60.85% -0.0698 -0.0645)
OKLCHoklch(60.85% 0.095 222.8)
XYZxyz(18.6310, 23.3252, 42.5420)
Luminance0.2333 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FAC #AC5033
analogous
#33AC8C #338FAC #3352AC
triadic
#338FAC #AC338F #8FAC33
tetradic
#338FAC #8C33AC #AC5033 #52AC33
square
#338FAC #8C33AC #AC5033 #52AC33
split-complementary
#338FAC #AC3352 #AC8C33
monochromatic
#17414E #25687D #338FAC #51AECB #80C4D9

Accessibility & contrast

On white

3.71
#338FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#338FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FAC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FAC#FFFFFF#000000##000000
##338FAC1.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8CAE
Deuteranopia (green-blind)
#6E7FAC
Tritanopia (blue-blind)
#009898
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338fac;
/* rgb */ color: rgb(51, 143, 172);
/* oklch */ color: oklch(60.8% 0.095 222.8);
Tailwind
colors: {
  custom: {
    50: '#7ab0c4',
    500: '#338fac',
    950: '#000000',
  },
}
SCSS
$custom: #338fac;
$custom-light: #7ab0c4;
$custom-dark: #000000;
JSON
{
  "hex": "#338fac",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 172
  },
  "hsl": {
    "h": 194.38,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.60848,
    "c": 0.09505,
    "h": 222.8
  },
  "luminance": 0.23327
}

Semantic roles & 50–950 ramp

primary
#338FAC
secondary
#C28A78
accent
#6E4ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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