#071031#071031

#071031 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.067 H 267.6°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#071031
RGBrgb(7, 16, 49)
HSLhsl(227, 75%, 11%)
HSVhsv(227, 86%, 19%)
CMYKcmyk(85.7%, 67.3%, 0%, 80.8%)
CIE-LABlab(5.76, 9.06, -22.79)
CIE-LCHlch(5.76, 24.53, 291.69°)
OKLaboklab(18.92% -0.0028 -0.0669)
OKLCHoklch(18.92% 0.067 267.6)
XYZxyz(0.8271, 0.6374, 2.9846)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071031 #312807
analogous
#072531 #071031 #130731
triadic
#071031 #310710 #103107
tetradic
#071031 #310725 #312807 #073113
square
#071031 #310725 #312807 #073113
split-complementary
#071031 #311307 #253107
monochromatic
#04091B #04091B #071031 #0F2167 #16339C

Accessibility & contrast

On white

18.62
#071031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#071031 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071031
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071031#FFFFFF#000000##FFFFFF
##0710311.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #071031;
/* rgb */ color: rgb(7, 16, 49);
/* oklch */ color: oklch(18.9% 0.067 267.6);
Tailwind
colors: {
  custom: {
    50: '#4d4e69',
    500: '#071031',
    950: '#000000',
  },
}
SCSS
$custom: #071031;
$custom-light: #4d4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#071031",
  "rgb": {
    "r": 7,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 227.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.1892,
    "c": 0.06698,
    "h": 267.6
  },
  "luminance": 0.00638
}

Semantic roles & 50–950 ramp

primary
#071031
secondary
#716023
accent
#C936F2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #071031

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

Preview Lab → · Contrast checker → · Palette generator →

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