#071040#071040

#071040 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.6% C 0.091 H 268.1°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#071040
RGBrgb(7, 16, 64)
HSLhsl(231, 80%, 14%)
HSVhsv(231, 89%, 25%)
CMYKcmyk(89.1%, 75%, 0%, 74.9%)
CIE-LABlab(7.10, 16.80, -31.50)
CIE-LCHlch(7.10, 35.70, 298.07°)
OKLaboklab(20.55% -0.003 -0.0914)
OKLCHoklch(20.55% 0.091 268.1)
XYZxyz(1.1980, 0.7858, 4.9380)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071040 #403707
analogous
#072D40 #071040 #1B0740
triadic
#071040 #400710 #104007
tetradic
#071040 #40072D #403707 #07401B
square
#071040 #40072D #403707 #07401B
split-complementary
#071040 #401B07 #2D4007
monochromatic
#03071C #03071C #071040 #0D1E77 #132CAE

Accessibility & contrast

On white

18.15
#071040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#071040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071040
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071040#FFFFFF#000000##FFFFFF
##0710401.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #071040;
/* rgb */ color: rgb(7, 16, 64);
/* oklch */ color: oklch(20.6% 0.091 268.1);
Tailwind
colors: {
  custom: {
    50: '#524e75',
    500: '#071040',
    950: '#000000',
  },
}
SCSS
$custom: #071040;
$custom-light: #524e75;
$custom-dark: #000000;
JSON
{
  "hex": "#071040",
  "rgb": {
    "r": 7,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 230.526,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20552,
    "c": 0.09142,
    "h": 268.1
  },
  "luminance": 0.00786
}

Semantic roles & 50–950 ramp

primary
#071040
secondary
#7F7124
accent
#D831F7
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #071040

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

Preview Lab → · Contrast checker → · Palette generator →

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