#338EBB#338EBB

#338EBB is a mid, moderate cyan. Relative luminance 0.236; OKLCH L 61.3% C 0.108 H 234.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#338EBB
RGBrgb(51, 142, 187)
HSLhsl(200, 57%, 47%)
HSVhsv(200, 73%, 73%)
CMYKcmyk(72.7%, 24.1%, 0%, 26.7%)
CIE-LABlab(55.72, -11.73, -31.17)
CIE-LCHlch(55.72, 33.30, 249.38°)
OKLaboklab(61.31% -0.0632 -0.0877)
OKLCHoklch(61.31% 0.108 234.2)
XYZxyz(20.0043, 23.6354, 50.5119)
Luminance0.2364 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EBB #BB6033
analogous
#33BBA4 #338EBB #334ABB
triadic
#338EBB #BB338E #8EBB33
tetradic
#338EBB #A433BB #BB6033 #4ABB33
square
#338EBB #A433BB #BB6033 #4ABB33
split-complementary
#338EBB #BB334A #BBA433
monochromatic
#19455B #26698B #338EBB #59AAD2 #89C3DF

Accessibility & contrast

On white

3.67
#338EBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#338EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EBB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EBB#FFFFFF#000000##000000
##338EBB1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#788DBD
Deuteranopia (green-blind)
#6680BA
Tritanopia (blue-blind)
#009A9D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #338ebb;
/* rgb */ color: rgb(51, 142, 187);
/* oklch */ color: oklch(61.3% 0.108 234.2);
Tailwind
colors: {
  custom: {
    50: '#7dafcf',
    500: '#338ebb',
    950: '#000000',
  },
}
SCSS
$custom: #338ebb;
$custom-light: #7dafcf;
$custom-dark: #000000;
JSON
{
  "hex": "#338ebb",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 187
  },
  "hsl": {
    "h": 199.853,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.61305,
    "c": 0.1081,
    "h": 234.2
  },
  "luminance": 0.23638
}

Semantic roles & 50–950 ramp

primary
#338EBB
secondary
#C99981
accent
#7A47E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1014
muted
#7C7F82

Preview Lab

Preview with #338EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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