#336FBA#336FBA

#336FBA is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 54.0% C 0.133 H 255.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#336FBA
RGBrgb(51, 111, 186)
HSLhsl(213, 57%, 46%)
HSVhsv(213, 73%, 73%)
CMYKcmyk(72.6%, 40.3%, 0%, 27.1%)
CIE-LABlab(46.47, 6.30, -45.17)
CIE-LCHlch(46.47, 45.60, 277.94°)
OKLaboklab(54% -0.0335 -0.1289)
OKLCHoklch(54% 0.133 255.4)
XYZxyz(15.9093, 15.6161, 48.6206)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FBA #BA7E33
analogous
#33B3BA #336FBA #3A33BA
triadic
#336FBA #BA336F #6FBA33
tetradic
#336FBA #BA33B3 #BA7E33 #33BA3A
square
#336FBA #BA33B3 #BA7E33 #33BA3A
split-complementary
#336FBA #BA3A33 #B3BA33
monochromatic
#19365A #26528A #336FBA #598ED1 #89AFDF

Accessibility & contrast

On white

5.09
#336FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#336FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FBA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FBA#FFFFFF#000000##FFFFFF
##336FBA1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C75BD
Deuteranopia (green-blind)
#3668B8
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336fba;
/* rgb */ color: rgb(51, 111, 186);
/* oklch */ color: oklch(54.0% 0.133 255.4);
Tailwind
colors: {
  custom: {
    50: '#7c97cf',
    500: '#336fba',
    950: '#000000',
  },
}
SCSS
$custom: #336fba;
$custom-light: #7c97cf;
$custom-dark: #000000;
JSON
{
  "hex": "#336fba",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 186
  },
  "hsl": {
    "h": 213.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53997,
    "c": 0.13317,
    "h": 255.4
  },
  "luminance": 0.15618
}

Semantic roles & 50–950 ramp

primary
#336FBA
secondary
#C9A880
accent
#9C48E0
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #336FBA

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

Preview Lab → · Contrast checker → · Palette generator →

#336FBA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva