#031127#031127

#031127 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 17.9% C 0.050 H 256.9°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#031127
RGBrgb(3, 17, 39)
HSLhsl(217, 86%, 8%)
HSVhsv(217, 92%, 15%)
CMYKcmyk(92.3%, 56.4%, 0%, 84.7%)
CIE-LABlab(5.12, 2.68, -16.33)
CIE-LCHlch(5.12, 16.55, 279.33°)
OKLaboklab(17.93% -0.0114 -0.049)
OKLCHoklch(17.93% 0.05 256.9)
XYZxyz(0.6041, 0.5667, 1.9966)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031127 #271903
analogous
#032327 #031127 #070327
triadic
#031127 #270311 #112703
tetradic
#031127 #270323 #271903 #032707
square
#031127 #270323 #271903 #032707
split-complementary
#031127 #270703 #232703
monochromatic
#020C1C #020C1C #031127 #072A60 #0C4399

Accessibility & contrast

On white

18.86
#031127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#031127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031127
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031127#FFFFFF#000000##FFFFFF
##0311271.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061328
Deuteranopia (green-blind)
#021027
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #031127;
/* rgb */ color: rgb(3, 17, 39);
/* oklch */ color: oklch(17.9% 0.050 256.9);
Tailwind
colors: {
  custom: {
    50: '#484f61',
    500: '#031127',
    950: '#000000',
  },
}
SCSS
$custom: #031127;
$custom-light: #484f61;
$custom-dark: #000000;
JSON
{
  "hex": "#031127",
  "rgb": {
    "r": 3,
    "g": 17,
    "b": 39
  },
  "hsl": {
    "h": 216.667,
    "s": 85.714,
    "l": 8.235
  },
  "oklch": {
    "l": 0.17926,
    "c": 0.05027,
    "h": 256.9
  },
  "luminance": 0.00567
}

Semantic roles & 50–950 ramp

primary
#031127
secondary
#6B4C1B
accent
#AB2CFC
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #031127

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

Preview Lab → · Contrast checker → · Palette generator →

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