#336BB5#336BB5

#336BB5 is a mid, vivid cyan. Relative luminance 0.146; OKLCH L 52.8% C 0.131 H 256.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#336BB5
RGBrgb(51, 107, 181)
HSLhsl(214, 56%, 45%)
HSVhsv(214, 72%, 71%)
CMYKcmyk(71.8%, 40.9%, 0%, 29%)
CIE-LABlab(45.02, 6.96, -44.57)
CIE-LCHlch(45.02, 45.11, 278.87°)
OKLaboklab(52.78% -0.0309 -0.1272)
OKLCHoklch(52.78% 0.131 256.4)
XYZxyz(14.9604, 14.5538, 45.7278)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BB5 #B57D33
analogous
#33ACB5 #336BB5 #3C33B5
triadic
#336BB5 #B5336B #6BB533
tetradic
#336BB5 #B533AC #B57D33 #33B53C
square
#336BB5 #B533AC #B57D33 #33B53C
split-complementary
#336BB5 #B53C33 #ACB533
monochromatic
#183356 #264F85 #336BB5 #568ACF #86ABDD

Accessibility & contrast

On white

5.37
#336BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#336BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BB5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BB5#FFFFFF#000000##FFFFFF
##336BB51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4871B8
Deuteranopia (green-blind)
#3365B4
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336bb5;
/* rgb */ color: rgb(51, 107, 181);
/* oklch */ color: oklch(52.8% 0.131 256.4);
Tailwind
colors: {
  custom: {
    50: '#7b94cb',
    500: '#336bb5',
    950: '#000000',
  },
}
SCSS
$custom: #336bb5;
$custom-light: #7b94cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336bb5",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 181
  },
  "hsl": {
    "h": 214.154,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52777,
    "c": 0.1309,
    "h": 256.4
  },
  "luminance": 0.14555
}

Semantic roles & 50–950 ramp

primary
#336BB5
secondary
#C6A77D
accent
#9E48DF
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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