#338EBA#338EBA

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

Color values

HEX#338EBA
RGBrgb(51, 142, 186)
HSLhsl(200, 57%, 46%)
HSVhsv(200, 73%, 73%)
CMYKcmyk(72.6%, 23.7%, 0%, 27.1%)
CIE-LABlab(55.68, -12.07, -30.67)
CIE-LCHlch(55.68, 32.96, 248.52°)
OKLaboklab(61.26% -0.0635 -0.0863)
OKLCHoklch(61.26% 0.107 233.6)
XYZxyz(19.8976, 23.5927, 49.9500)
Luminance0.2359 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EBA #BA5F33
analogous
#33BAA3 #338EBA #334ABA
triadic
#338EBA #BA338E #8EBA33
tetradic
#338EBA #A333BA #BA5F33 #4ABA33
square
#338EBA #A333BA #BA5F33 #4ABA33
split-complementary
#338EBA #BA334A #BAA333
monochromatic
#19455A #26698A #338EBA #59AAD1 #89C3DF

Accessibility & contrast

On white

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

On black

5.72
#338EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EBA
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EBA#FFFFFF#000000##000000
##338EBA1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338eba;
/* rgb */ color: rgb(51, 142, 186);
/* oklch */ color: oklch(61.3% 0.107 233.6);
Tailwind
colors: {
  custom: {
    50: '#7cafcf',
    500: '#338eba',
    950: '#000000',
  },
}
SCSS
$custom: #338eba;
$custom-light: #7cafcf;
$custom-dark: #000000;
JSON
{
  "hex": "#338eba",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 186
  },
  "hsl": {
    "h": 199.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.61256,
    "c": 0.10714,
    "h": 233.6
  },
  "luminance": 0.23595
}

Semantic roles & 50–950 ramp

primary
#338EBA
secondary
#C99880
accent
#7948E0
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #338EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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