#336ACF#336ACF

#336ACF is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.3% C 0.167 H 261.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#336ACF
RGBrgb(51, 106, 207)
HSLhsl(219, 62%, 51%)
HSVhsv(219, 75%, 81%)
CMYKcmyk(75.4%, 48.8%, 0%, 18.8%)
CIE-LABlab(46.33, 17.27, -57.48)
CIE-LCHlch(46.33, 60.02, 286.73°)
OKLaboklab(54.31% -0.0253 -0.1652)
OKLCHoklch(54.31% 0.167 261.3)
XYZxyz(17.7777, 15.5149, 61.0771)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336ACF #CF9833
analogous
#33B8CF #336ACF #4A33CF
triadic
#336ACF #CF336A #6ACF33
tetradic
#336ACF #CF33B8 #CF9833 #33CF4A
square
#336ACF #CF33B8 #CF9833 #33CF4A
split-complementary
#336ACF #CF4A33 #B8CF33
monochromatic
#1A376E #25509F #336ACF #658EDB #96B2E6

Accessibility & contrast

On white

5.12
#336ACF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#336ACF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336ACF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336ACF#FFFFFF#000000##FFFFFF
##336ACF1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F75D3
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#008292
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336acf;
/* rgb */ color: rgb(51, 106, 207);
/* oklch */ color: oklch(54.3% 0.167 261.3);
Tailwind
colors: {
  custom: {
    50: '#8094de',
    500: '#336acf',
    950: '#000000',
  },
}
SCSS
$custom: #336acf;
$custom-light: #8094de;
$custom-dark: #000000;
JSON
{
  "hex": "#336acf",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 207
  },
  "hsl": {
    "h": 218.846,
    "s": 61.905,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54306,
    "c": 0.1671,
    "h": 261.3
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336ACF

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

Preview Lab → · Contrast checker → · Palette generator →

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