#336BB4#336BB4

#336BB4 is a mid, vivid cyan. Relative luminance 0.145; OKLCH L 52.7% C 0.130 H 256.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#336BB4
RGBrgb(51, 107, 180)
HSLhsl(214, 56%, 45%)
HSVhsv(214, 72%, 71%)
CMYKcmyk(71.7%, 40.6%, 0%, 29.4%)
CIE-LABlab(44.96, 6.59, -44.08)
CIE-LCHlch(44.96, 44.57, 278.50°)
OKLaboklab(52.71% -0.0311 -0.1258)
OKLCHoklch(52.71% 0.13 256.1)
XYZxyz(14.8581, 14.5129, 45.1894)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BB4 #B47C33
analogous
#33ACB4 #336BB4 #3B33B4
triadic
#336BB4 #B4336B #6BB433
tetradic
#336BB4 #B433AC #B47C33 #33B43B
square
#336BB4 #B433AC #B47C33 #33B43B
split-complementary
#336BB4 #B43B33 #ACB433
monochromatic
#183255 #254F84 #336BB4 #558ACF #85ABDC

Accessibility & contrast

On white

5.38
#336BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#336BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BB4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BB4#FFFFFF#000000##FFFFFF
##336BB41.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4971B7
Deuteranopia (green-blind)
#3465B3
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336bb4;
/* rgb */ color: rgb(51, 107, 180);
/* oklch */ color: oklch(52.7% 0.130 256.1);
Tailwind
colors: {
  custom: {
    50: '#7b94cb',
    500: '#336bb4',
    950: '#000000',
  },
}
SCSS
$custom: #336bb4;
$custom-light: #7b94cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336bb4",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 180
  },
  "hsl": {
    "h": 213.953,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52714,
    "c": 0.12956,
    "h": 256.1
  },
  "luminance": 0.14514
}

Semantic roles & 50–950 ramp

primary
#336BB4
secondary
#C6A67D
accent
#9E49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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