#337FE2

A color in the Blue, Sky, Navy family

#337fe2 is a color in the Blue, Sky, Navy family: RGB(51, 127, 226), HSL(214°, 75%, 54%), CMYK(77%, 44%, 0%, 11%). Closest named color: royalblue. Contrast is 3.98:1 on white and 5.27:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#337fe2
RGBrgb(51 127 226)
RGB (legacy)rgb(51, 127, 226)
RGB %rgb(20% 50% 89%)
HSLhsl(214 75% 54%)
HSV / HSBhsv(214, 77%, 89%)
HWBhwb(214 20% 11%)
CMYKcmyk(77%, 44%, 0%, 11%)
CIELAB (D50)lab(52.47 3.3 -58.15)
LCHlch(52.47 58.24 273.24)
OKLaboklab(0.6009 -0.039 -0.1632)
OKLCHoklch(0.6009 0.1678 256.55)
Decimal3375074

Properties

Color ToneBlue, Sky, Navy
Closest named colorroyalblue ΔE 5.5
Closest web-safe color#3366cc
Hue214°
Saturation (HSL / HSV)75% / 77%
Lightness (HSL)54%
Brightness or Value (HSV)89%
Luminance (Rec.601 / Rec.709)45% / 46%
Relative luminance (WCAG)0.2137
Red / Green / Blue51 / 127 / 226

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.98:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.27:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 66.7 / -35 · As background with white / black text: Lc -72.2 / 37.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #337fe2;
  --color-brand-oklch: oklch(60.09% 0.1678 256.55);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 127 226 / 50%); }
/* Tailwind CSS */
<div class="bg-[#337fe2] text-[#337fe2] border-[#337fe2]">