#2E4ECC

A color in the Blue, Sky, Navy family

#2e4ecc is a color in the Blue, Sky, Navy family: RGB(46, 78, 204), HSL(228°, 63%, 49%), CMYK(77%, 62%, 0%, 20%). Closest named color: royalblue. Contrast is 6.82:1 on white and 3.08:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2e4ecc
RGBrgb(46 78 204)
RGB (legacy)rgb(46, 78, 204)
RGB %rgb(18% 31% 80%)
HSLhsl(228 63% 49%)
HSV / HSBhsv(228, 77%, 80%)
HWBhwb(228 18% 20%)
CMYKcmyk(77%, 62%, 0%, 20%)
CIELAB (D50)lab(37.35 24.85 -70.07)
LCHlch(37.35 74.35 289.53)
OKLaboklab(0.483 -0.0095 -0.1979)
OKLCHoklch(0.483 0.1981 267.25)
Decimal3034828

Properties

Color ToneBlue, Sky, Navy
Closest named colorroyalblue ΔE 7.8
Closest web-safe color#3366cc
Hue228°
Saturation (HSL / HSV)63% / 77%
Lightness (HSL)49%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)32% / 31%
Relative luminance (WCAG)0.1039
Red / Green / Blue46 / 78 / 204

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 82.9 / -19 · As background with white / black text: Lc -87.9 / 21.2

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: #2e4ecc;
  --color-brand-oklch: oklch(48.3% 0.1981 267.25);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(46 78 204 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2e4ecc] text-[#2e4ecc] border-[#2e4ecc]">