#071940#071940

#071940 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.078 H 262.8°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#071940
RGBrgb(7, 25, 64)
HSLhsl(221, 80%, 14%)
HSVhsv(221, 89%, 25%)
CMYKcmyk(89.1%, 60.9%, 0%, 74.9%)
CIE-LABlab(9.88, 9.85, -26.96)
CIE-LCHlch(9.88, 28.70, 290.06°)
OKLaboklab(22.65% -0.0098 -0.0777)
OKLCHoklch(22.65% 0.078 262.8)
XYZxyz(1.3603, 1.1104, 4.9921)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071940 #402E07
analogous
#073640 #071940 #120740
triadic
#071940 #400719 #194007
tetradic
#071940 #400736 #402E07 #074012
square
#071940 #400736 #402E07 #074012
split-complementary
#071940 #401207 #364007
monochromatic
#030B1C #030B1C #071940 #0D2F77 #1344AE

Accessibility & contrast

On white

17.18
#071940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#071940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071940
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071940#FFFFFF#000000##FFFFFF
##0719401.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #071940;
/* rgb */ color: rgb(7, 25, 64);
/* oklch */ color: oklch(22.7% 0.078 262.8);
Tailwind
colors: {
  custom: {
    50: '#515575',
    500: '#071940',
    950: '#000000',
  },
}
SCSS
$custom: #071940;
$custom-light: #515575;
$custom-dark: #000000;
JSON
{
  "hex": "#071940",
  "rgb": {
    "r": 7,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 221.053,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22654,
    "c": 0.07834,
    "h": 262.8
  },
  "luminance": 0.01111
}

Semantic roles & 50–950 ramp

primary
#071940
secondary
#7F6224
accent
#B831F7
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #071940

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

Preview Lab → · Contrast checker → · Palette generator →

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