#336BCF#336BCF

#336BCF is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.5% C 0.166 H 260.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#336BCF
RGBrgb(51, 107, 207)
HSLhsl(218, 62%, 51%)
HSVhsv(218, 75%, 81%)
CMYKcmyk(75.4%, 48.3%, 0%, 18.8%)
CIE-LABlab(46.61, 16.64, -57.03)
CIE-LCHlch(46.61, 59.41, 286.26°)
OKLaboklab(54.52% -0.0261 -0.1638)
OKLCHoklch(54.52% 0.166 260.9)
XYZxyz(17.8814, 15.7222, 61.1117)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BCF #CF9733
analogous
#33B9CF #336BCF #4933CF
triadic
#336BCF #CF336B #6BCF33
tetradic
#336BCF #CF33B9 #CF9733 #33CF49
square
#336BCF #CF33B9 #CF9733 #33CF49
split-complementary
#336BCF #CF4933 #B9CF33
monochromatic
#1A386E #25519F #336BCF #658FDB #96B3E6

Accessibility & contrast

On white

5.07
#336BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#336BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BCF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BCF#FFFFFF#000000##FFFFFF
##336BCF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3276D3
Deuteranopia (green-blind)
#0068CD
Tritanopia (blue-blind)
#008393
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336bcf;
/* rgb */ color: rgb(51, 107, 207);
/* oklch */ color: oklch(54.5% 0.166 260.9);
Tailwind
colors: {
  custom: {
    50: '#8094de',
    500: '#336bcf',
    950: '#000000',
  },
}
SCSS
$custom: #336bcf;
$custom-light: #8094de;
$custom-dark: #000000;
JSON
{
  "hex": "#336bcf",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 207
  },
  "hsl": {
    "h": 218.462,
    "s": 61.905,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54517,
    "c": 0.16591,
    "h": 260.9
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#336BCF
secondary
#D2B98C
accent
#AB43E5
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #336BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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