#338CA5#338CA5

#338CA5 is a mid, moderate cyan. Relative luminance 0.222; OKLCH L 59.8% C 0.091 H 220.0°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#338CA5
RGBrgb(51, 140, 165)
HSLhsl(193, 53%, 42%)
HSVhsv(193, 69%, 65%)
CMYKcmyk(69.1%, 15.2%, 0%, 35.3%)
CIE-LABlab(54.21, -18.01, -20.92)
CIE-LCHlch(54.21, 27.60, 229.26°)
OKLaboklab(59.8% -0.0694 -0.0583)
OKLCHoklch(59.8% 0.091 220)
XYZxyz(17.5321, 22.1746, 38.9462)
Luminance0.2218 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338CA5 #A54C33
analogous
#33A585 #338CA5 #3353A5
triadic
#338CA5 #A5338C #8CA533
tetradic
#338CA5 #8533A5 #A54C33 #53A533
square
#338CA5 #8533A5 #A54C33 #53A533
split-complementary
#338CA5 #A53353 #A58533
monochromatic
#163D48 #256476 #338CA5 #4DADC8 #7CC3D6

Accessibility & contrast

On white

3.86
#338CA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#338CA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338CA5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338CA5#FFFFFF#000000##000000
##338CA51.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D88A6
Deuteranopia (green-blind)
#6D7DA5
Tritanopia (blue-blind)
#009494
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338ca5;
/* rgb */ color: rgb(51, 140, 165);
/* oklch */ color: oklch(59.8% 0.091 220.0);
Tailwind
colors: {
  custom: {
    50: '#79adbf',
    500: '#338ca5',
    950: '#000000',
  },
}
SCSS
$custom: #338ca5;
$custom-light: #79adbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338ca5",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 165
  },
  "hsl": {
    "h": 193.158,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.59801,
    "c": 0.09067,
    "h": 220
  },
  "luminance": 0.22177
}

Semantic roles & 50–950 ramp

primary
#338CA5
secondary
#BF8575
accent
#6B4CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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