#2B2F4E

A color in the Blue, Sky, Navy family

#2b2f4e is a color in the Blue, Sky, Navy family: RGB(43, 47, 78), HSL(233°, 29%, 24%), CMYK(45%, 40%, 0%, 69%). Closest named color: midnightblue. Contrast is 12.97:1 on white and 1.62:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2b2f4e
RGBrgb(43 47 78)
RGB (legacy)rgb(43, 47, 78)
RGB %rgb(17% 18% 31%)
HSLhsl(233 29% 24%)
HSV / HSBhsv(233, 45%, 31%)
HWBhwb(233 17% 69%)
CMYKcmyk(45%, 40%, 0%, 69%)
CIELAB (D50)lab(20.19 5.31 -19.9)
LCHlch(20.19 20.6 284.95)
OKLaboklab(0.3168 0.0069 -0.0551)
OKLCHoklch(0.3168 0.0555 277.14)
Decimal2830158

Properties

Color ToneBlue, Sky, Navy
Closest named colormidnightblue ΔE 9.3
Closest web-safe color#333366
Hue233°
Saturation (HSL / HSV)29% / 45%
Lightness (HSL)24%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)19% / 19%
Relative luminance (WCAG)0.031
Red / Green / Blue43 / 47 / 78

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 99.1 / 0 · As background with white / black text: Lc -102.4 / 0

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: #2b2f4e;
  --color-brand-oklch: oklch(31.68% 0.0555 277.14);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(43 47 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2b2f4e] text-[#2b2f4e] border-[#2b2f4e]">