#112A7F#112A7F

#112A7F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.146 H 265.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#112A7F
RGBrgb(17, 42, 127)
HSLhsl(226, 76%, 28%)
HSVhsv(226, 87%, 50%)
CMYKcmyk(86.6%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.23, 25.46, -50.35)
CIE-LCHlch(21.23, 56.42, 296.82°)
OKLaboklab(33.08% -0.0111 -0.1459)
OKLCHoklch(33.08% 0.146 265.7)
XYZxyz(4.8885, 3.3068, 20.4552)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#112A7F #7F6611
analogous
#11617F #112A7F #2F117F
triadic
#112A7F #7F112A #2A7F11
tetradic
#112A7F #7F1161 #7F6611 #117F2F
square
#112A7F #7F1161 #7F6611 #117F2F
split-complementary
#112A7F #7F2F11 #617F11
monochromatic
#04091B #0A1849 #112A7F #183CB5 #2852E2

Accessibility & contrast

On white

12.64
#112A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#112A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #112A7F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##112A7F#FFFFFF#000000##FFFFFF
##112A7F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #112a7f;
/* rgb */ color: rgb(17, 42, 127);
/* oklch */ color: oklch(33.1% 0.146 265.7);
Tailwind
colors: {
  custom: {
    50: '#6663a5',
    500: '#112a7f',
    950: '#000000',
  },
}
SCSS
$custom: #112a7f;
$custom-light: #6663a5;
$custom-dark: #000000;
JSON
{
  "hex": "#112a7f",
  "rgb": {
    "r": 17,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 226.364,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33077,
    "c": 0.14628,
    "h": 265.7
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#112A7F
secondary
#B59837
accent
#C835F3
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #112A7F

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

Preview Lab → · Contrast checker → · Palette generator →

#112A7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva