#336CBE#336CBE

#336CBE is a mid, vivid blue. Relative luminance 0.151; OKLCH L 53.6% C 0.142 H 257.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#336CBE
RGBrgb(51, 108, 190)
HSLhsl(215, 58%, 47%)
HSVhsv(215, 73%, 75%)
CMYKcmyk(73.2%, 43.2%, 0%, 25.5%)
CIE-LABlab(45.83, 9.67, -48.50)
CIE-LCHlch(45.83, 49.45, 281.27°)
OKLaboklab(53.58% -0.0299 -0.1387)
OKLCHoklch(53.58% 0.142 257.8)
XYZxyz(16.0187, 15.1449, 50.7842)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CBE #BE8533
analogous
#33B1BE #336CBE #4033BE
triadic
#336CBE #BE336C #6CBE33
tetradic
#336CBE #BE33B1 #BE8533 #33BE40
square
#336CBE #BE33B1 #BE8533 #33BE40
split-complementary
#336CBE #BE4033 #B1BE33
monochromatic
#19355E #26518E #336CBE #5B8CD3 #8BAEE0

Accessibility & contrast

On white

5.21
#336CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#336CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CBE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CBE#FFFFFF#000000##FFFFFF
##336CBE1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4473C1
Deuteranopia (green-blind)
#2B67BC
Tritanopia (blue-blind)
#007F8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336cbe;
/* rgb */ color: rgb(51, 108, 190);
/* oklch */ color: oklch(53.6% 0.142 257.8);
Tailwind
colors: {
  custom: {
    50: '#7d95d2',
    500: '#336cbe',
    950: '#000000',
  },
}
SCSS
$custom: #336cbe;
$custom-light: #7d95d2;
$custom-dark: #000000;
JSON
{
  "hex": "#336cbe",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 190
  },
  "hsl": {
    "h": 215.396,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5358,
    "c": 0.1419,
    "h": 257.8
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#336CBE
secondary
#CAAD83
accent
#A247E1
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #336CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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