#071A42#071A42

#071A42 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.1% C 0.080 H 262.5°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#071A42
RGBrgb(7, 26, 66)
HSLhsl(221, 81%, 14%)
HSVhsv(221, 89%, 26%)
CMYKcmyk(89.4%, 60.6%, 0%, 74.1%)
CIE-LABlab(10.39, 9.98, -27.55)
CIE-LCHlch(10.39, 29.30, 289.92°)
OKLaboklab(23.1% -0.0104 -0.0794)
OKLCHoklch(23.1% 0.08 262.5)
XYZxyz(1.4400, 1.1771, 5.3045)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071A42 #422F07
analogous
#073842 #071A42 #120742
triadic
#071A42 #42071A #1A4207
tetradic
#071A42 #420738 #422F07 #074212
square
#071A42 #420738 #422F07 #074212
split-complementary
#071A42 #421207 #384207
monochromatic
#030B1C #030B1C #071A42 #0D3079 #1346B1

Accessibility & contrast

On white

17.00
#071A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#071A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071A42
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071A42#FFFFFF#000000##FFFFFF
##071A421.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #071a42;
/* rgb */ color: rgb(7, 26, 66);
/* oklch */ color: oklch(23.1% 0.080 262.5);
Tailwind
colors: {
  custom: {
    50: '#525577',
    500: '#071a42',
    950: '#000000',
  },
}
SCSS
$custom: #071a42;
$custom-light: #525577;
$custom-dark: #000000;
JSON
{
  "hex": "#071a42",
  "rgb": {
    "r": 7,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 220.678,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23095,
    "c": 0.08012,
    "h": 262.5
  },
  "luminance": 0.01177
}

Semantic roles & 50–950 ramp

primary
#071A42
secondary
#816324
accent
#B731F7
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#030308
muted
#78787B

Preview Lab

Preview with #071A42

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

Preview Lab → · Contrast checker → · Palette generator →

#071A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva