#336AB9#336AB9

#336AB9 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 52.8% C 0.137 H 257.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#336AB9
RGBrgb(51, 106, 185)
HSLhsl(215, 57%, 46%)
HSVhsv(215, 72%, 73%)
CMYKcmyk(72.4%, 42.7%, 0%, 27.5%)
CIE-LABlab(44.96, 9.07, -46.99)
CIE-LCHlch(44.96, 47.86, 280.93°)
OKLaboklab(52.81% -0.0291 -0.1343)
OKLCHoklch(52.81% 0.137 257.8)
XYZxyz(15.2730, 14.5130, 47.8859)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB9 #B98233
analogous
#33ADB9 #336AB9 #3F33B9
triadic
#336AB9 #B9336A #6AB933
tetradic
#336AB9 #B933AD #B98233 #33B93F
square
#336AB9 #B933AD #B98233 #33B93F
split-complementary
#336AB9 #B93F33 #ADB933
monochromatic
#193359 #264F89 #336AB9 #588AD1 #88ABDE

Accessibility & contrast

On white

5.38
#336AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#336AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB9
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB9#FFFFFF#000000##FFFFFF
##336AB91.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4471BC
Deuteranopia (green-blind)
#2C65B7
Tritanopia (blue-blind)
#007C88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336ab9;
/* rgb */ color: rgb(51, 106, 185);
/* oklch */ color: oklch(52.8% 0.137 257.8);
Tailwind
colors: {
  custom: {
    50: '#7c94ce',
    500: '#336ab9',
    950: '#000000',
  },
}
SCSS
$custom: #336ab9;
$custom-light: #7c94ce;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab9",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 185
  },
  "hsl": {
    "h": 215.373,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.13744,
    "h": 257.8
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#336AB9
secondary
#C8AA80
accent
#A248E0
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #336AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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