#338AB1#338AB1

#338AB1 is a mid, moderate cyan. Relative luminance 0.221; OKLCH L 59.9% C 0.101 H 231.4°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#338AB1
RGBrgb(51, 138, 177)
HSLhsl(199, 55%, 45%)
HSVhsv(199, 71%, 69%)
CMYKcmyk(71.2%, 22%, 0%, 30.6%)
CIE-LABlab(54.08, -12.91, -28.00)
CIE-LCHlch(54.08, 30.84, 245.25°)
OKLaboklab(59.86% -0.0627 -0.0786)
OKLCHoklch(59.86% 0.101 231.4)
XYZxyz(18.3864, 22.0530, 44.8741)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AB1 #B15A33
analogous
#33B199 #338AB1 #334BB1
triadic
#338AB1 #B1338A #8AB133
tetradic
#338AB1 #9933B1 #B15A33 #4BB133
square
#338AB1 #9933B1 #B15A33 #4BB133
split-complementary
#338AB1 #B1334B #B19933
monochromatic
#184052 #256581 #338AB1 #54A8CE #83C0DB

Accessibility & contrast

On white

3.88
#338AB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#338AB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AB1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AB1#FFFFFF#000000##000000
##338AB11.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7688B3
Deuteranopia (green-blind)
#657CB0
Tritanopia (blue-blind)
#009597
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338ab1;
/* rgb */ color: rgb(51, 138, 177);
/* oklch */ color: oklch(59.9% 0.101 231.4);
Tailwind
colors: {
  custom: {
    50: '#7bacc8',
    500: '#338ab1',
    950: '#000000',
  },
}
SCSS
$custom: #338ab1;
$custom-light: #7bacc8;
$custom-dark: #000000;
JSON
{
  "hex": "#338ab1",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 177
  },
  "hsl": {
    "h": 198.571,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.59858,
    "c": 0.10059,
    "h": 231.4
  },
  "luminance": 0.22055
}

Semantic roles & 50–950 ramp

primary
#338AB1
secondary
#C5927B
accent
#7749DF
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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