#112872#112872

#112872 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.131 H 265.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#112872
RGBrgb(17, 40, 114)
HSLhsl(226, 74%, 26%)
HSVhsv(226, 85%, 45%)
CMYKcmyk(85.1%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.44, 21.55, -45.00)
CIE-LCHlch(19.44, 49.89, 295.59°)
OKLaboklab(31.37% -0.0098 -0.1302)
OKLCHoklch(31.37% 0.131 265.7)
XYZxyz(4.0262, 2.8512, 16.2545)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#112872 #725B11
analogous
#115872 #112872 #2A1172
triadic
#112872 #721128 #287211
tetradic
#112872 #721158 #725B11 #11722A
square
#112872 #721158 #725B11 #11722A
split-complementary
#112872 #722A11 #587211
monochromatic
#04091B #09153D #112872 #193BA7 #214DDD

Accessibility & contrast

On white

13.37
#112872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#112872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #112872
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##112872#FFFFFF#000000##FFFFFF
##1128721.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #112872;
/* rgb */ color: rgb(17, 40, 114);
/* oklch */ color: oklch(31.4% 0.131 265.7);
Tailwind
colors: {
  custom: {
    50: '#62619b',
    500: '#112872',
    950: '#000000',
  },
}
SCSS
$custom: #112872;
$custom-light: #62619b;
$custom-dark: #000000;
JSON
{
  "hex": "#112872",
  "rgb": {
    "r": 17,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 225.773,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31366,
    "c": 0.13059,
    "h": 265.7
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#112872
secondary
#A98E36
accent
#C537F1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #112872

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

Preview Lab → · Contrast checker → · Palette generator →

#112872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva