#336DBF#336DBF

#336DBF is a mid, vivid blue. Relative luminance 0.154; OKLCH L 53.9% C 0.142 H 257.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#336DBF
RGBrgb(51, 109, 191)
HSLhsl(215, 58%, 47%)
HSVhsv(215, 73%, 75%)
CMYKcmyk(73.3%, 42.9%, 0%, 25.1%)
CIE-LABlab(46.18, 9.41, -48.52)
CIE-LCHlch(46.18, 49.42, 280.97°)
OKLaboklab(53.87% -0.0306 -0.1388)
OKLCHoklch(53.87% 0.142 257.6)
XYZxyz(16.2344, 15.4009, 51.3972)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DBF #BF8533
analogous
#33B3BF #336DBF #3F33BF
triadic
#336DBF #BF336D #6DBF33
tetradic
#336DBF #BF33B3 #BF8533 #33BF3F
square
#336DBF #BF33B3 #BF8533 #33BF3F
split-complementary
#336DBF #BF3F33 #B3BF33
monochromatic
#19365E #26518F #336DBF #5C8DD3 #8CAFE0

Accessibility & contrast

On white

5.15
#336DBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#336DBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DBF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DBF#FFFFFF#000000##FFFFFF
##336DBF1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4574C2
Deuteranopia (green-blind)
#2C67BD
Tritanopia (blue-blind)
#00808C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336dbf;
/* rgb */ color: rgb(51, 109, 191);
/* oklch */ color: oklch(53.9% 0.142 257.6);
Tailwind
colors: {
  custom: {
    50: '#7d96d3',
    500: '#336dbf',
    950: '#000000',
  },
}
SCSS
$custom: #336dbf;
$custom-light: #7d96d3;
$custom-dark: #000000;
JSON
{
  "hex": "#336dbf",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 191
  },
  "hsl": {
    "h": 215.143,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53867,
    "c": 0.1421,
    "h": 257.6
  },
  "luminance": 0.15403
}

Semantic roles & 50–950 ramp

primary
#336DBF
secondary
#CBAD83
accent
#A147E1
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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