#112871#112871

#112871 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.129 H 265.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#112871
RGBrgb(17, 40, 113)
HSLhsl(226, 74%, 25%)
HSVhsv(226, 85%, 44%)
CMYKcmyk(85%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.34, 21.13, -44.51)
CIE-LCHlch(19.34, 49.27, 295.40°)
OKLaboklab(31.27% -0.0098 -0.1288)
OKLCHoklch(31.27% 0.129 265.6)
XYZxyz(3.9695, 2.8285, 15.9563)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#112871 #715A11
analogous
#115871 #112871 #2A1171
triadic
#112871 #711128 #287111
tetradic
#112871 #711158 #715A11 #11712A
square
#112871 #711158 #715A11 #11712A
split-complementary
#112871 #712A11 #587111
monochromatic
#04091B #09153C #112871 #193BA6 #214EDB

Accessibility & contrast

On white

13.41
#112871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #112871
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##112871#FFFFFF#000000##FFFFFF
##1128711.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #112871;
/* rgb */ color: rgb(17, 40, 113);
/* oklch */ color: oklch(31.3% 0.129 265.6);
Tailwind
colors: {
  custom: {
    50: '#62619b',
    500: '#112871',
    950: '#000000',
  },
}
SCSS
$custom: #112871;
$custom-light: #62619b;
$custom-dark: #000000;
JSON
{
  "hex": "#112871",
  "rgb": {
    "r": 17,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 225.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31268,
    "c": 0.12915,
    "h": 265.6
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#112871
secondary
#A88D36
accent
#C437F1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #112871

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

Preview Lab → · Contrast checker → · Palette generator →

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