#336BB1#336BB1

#336BB1 is a mid, vivid cyan. Relative luminance 0.144; OKLCH L 52.5% C 0.126 H 255.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#336BB1
RGBrgb(51, 107, 177)
HSLhsl(213, 55%, 45%)
HSVhsv(213, 71%, 69%)
CMYKcmyk(71.2%, 39.5%, 0%, 30.6%)
CIE-LABlab(44.79, 5.48, -42.60)
CIE-LCHlch(44.79, 42.95, 277.33°)
OKLaboklab(52.53% -0.0318 -0.1214)
OKLCHoklch(52.53% 0.126 255.3)
XYZxyz(14.5558, 14.3920, 43.5973)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BB1 #B17933
analogous
#33AAB1 #336BB1 #3A33B1
triadic
#336BB1 #B1336B #6BB133
tetradic
#336BB1 #B133AA #B17933 #33B13A
square
#336BB1 #B133AA #B17933 #33B13A
split-complementary
#336BB1 #B13A33 #AAB133
monochromatic
#183252 #254E81 #336BB1 #548ACE #83AADB

Accessibility & contrast

On white

5.41
#336BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#336BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BB1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BB1#FFFFFF#000000##FFFFFF
##336BB11.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B70B4
Deuteranopia (green-blind)
#3765B0
Tritanopia (blue-blind)
#007B85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336bb1;
/* rgb */ color: rgb(51, 107, 177);
/* oklch */ color: oklch(52.5% 0.126 255.3);
Tailwind
colors: {
  custom: {
    50: '#7a94c9',
    500: '#336bb1',
    950: '#000000',
  },
}
SCSS
$custom: #336bb1;
$custom-light: #7a94c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336bb1",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 177
  },
  "hsl": {
    "h": 213.333,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52527,
    "c": 0.12551,
    "h": 255.3
  },
  "luminance": 0.14394
}

Semantic roles & 50–950 ramp

primary
#336BB1
secondary
#C5A47B
accent
#9C49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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