#336BB2#336BB2

#336BB2 is a mid, vivid cyan. Relative luminance 0.144; OKLCH L 52.6% C 0.127 H 255.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#336BB2
RGBrgb(51, 107, 178)
HSLhsl(214, 55%, 45%)
HSVhsv(214, 71%, 70%)
CMYKcmyk(71.3%, 39.9%, 0%, 30.2%)
CIE-LABlab(44.85, 5.85, -43.10)
CIE-LCHlch(44.85, 43.49, 277.73°)
OKLaboklab(52.59% -0.0315 -0.1229)
OKLCHoklch(52.59% 0.127 255.6)
XYZxyz(14.6559, 14.4320, 44.1241)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BB2 #B27A33
analogous
#33ABB2 #336BB2 #3A33B2
triadic
#336BB2 #B2336B #6BB233
tetradic
#336BB2 #B233AB #B27A33 #33B23A
square
#336BB2 #B233AB #B27A33 #33B23A
split-complementary
#336BB2 #B23A33 #ABB233
monochromatic
#183253 #254E82 #336BB2 #548ACE #84ABDC

Accessibility & contrast

On white

5.40
#336BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#336BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BB2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BB2#FFFFFF#000000##FFFFFF
##336BB21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A70B5
Deuteranopia (green-blind)
#3665B1
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336bb2;
/* rgb */ color: rgb(51, 107, 178);
/* oklch */ color: oklch(52.6% 0.127 255.6);
Tailwind
colors: {
  custom: {
    50: '#7a94c9',
    500: '#336bb2',
    950: '#000000',
  },
}
SCSS
$custom: #336bb2;
$custom-light: #7a94c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336bb2",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 213.543,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52589,
    "c": 0.12686,
    "h": 255.6
  },
  "luminance": 0.14434
}

Semantic roles & 50–950 ramp

primary
#336BB2
secondary
#C5A57C
accent
#9D49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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