#123771

A color in the Blue, Sky, Navy family

#123771 is a color in the Blue, Sky, Navy family: RGB(18, 55, 113), HSL(217°, 73%, 26%), CMYK(84%, 51%, 0%, 56%). Closest named color: midnightblue. Contrast is 11.6:1 on white and 1.81:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#123771
RGBrgb(18 55 113)
RGB (legacy)rgb(18, 55, 113)
RGB %rgb(7% 22% 44%)
HSLhsl(217 73% 26%)
HSV / HSBhsv(217, 84%, 44%)
HWBhwb(217 7% 56%)
CMYKcmyk(84%, 51%, 0%, 56%)
CIELAB (D50)lab(23.25 5.29 -38)
LCHlch(23.25 38.37 277.93)
OKLaboklab(0.3468 -0.0201 -0.107)
OKLCHoklch(0.3468 0.1088 259.36)
Decimal1193841

Properties

Color ToneBlue, Sky, Navy
Closest named colormidnightblue ΔE 7.4
Closest web-safe color#003366
Hue217°
Saturation (HSL / HSV)73% / 84%
Lightness (HSL)26%
Brightness or Value (HSV)44%
Luminance (Rec.601 / Rec.709)20% / 20%
Relative luminance (WCAG)0.0405
Red / Green / Blue18 / 55 / 113

WCAG 2.2 Contrast Ratio

On White (#ffffff)
11.60:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.81: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 96.3 / 0 · As background with white / black text: Lc -100 / 7.6

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: #123771;
  --color-brand-oklch: oklch(34.68% 0.1088 259.36);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(18 55 113 / 50%); }
/* Tailwind CSS */
<div class="bg-[#123771] text-[#123771] border-[#123771]">