#071042#071042

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

Color values

HEX#071042
RGBrgb(7, 16, 66)
HSLhsl(231, 81%, 14%)
HSVhsv(231, 89%, 26%)
CMYKcmyk(89.4%, 75.8%, 0%, 74.1%)
CIE-LABlab(7.31, 17.74, -32.58)
CIE-LCHlch(7.31, 37.10, 298.57°)
OKLaboklab(20.78% -0.0031 -0.0945)
OKLCHoklch(20.78% 0.095 268.1)
XYZxyz(1.2559, 0.8090, 5.2432)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071042 #423907
analogous
#072E42 #071042 #1C0742
triadic
#071042 #420710 #104207
tetradic
#071042 #42072E #423907 #07421C
square
#071042 #42072E #423907 #07421C
split-complementary
#071042 #421C07 #2E4207
monochromatic
#03071C #03071C #071042 #0D1D79 #132BB1

Accessibility & contrast

On white

18.08
#071042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #071042
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071042#FFFFFF#000000##FFFFFF
##0710421.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #071042;
/* rgb */ color: rgb(7, 16, 66);
/* oklch */ color: oklch(20.8% 0.095 268.1);
Tailwind
colors: {
  custom: {
    50: '#534e77',
    500: '#071042',
    950: '#000000',
  },
}
SCSS
$custom: #071042;
$custom-light: #534e77;
$custom-dark: #000000;
JSON
{
  "hex": "#071042",
  "rgb": {
    "r": 7,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 230.847,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20784,
    "c": 0.0945,
    "h": 268.1
  },
  "luminance": 0.00809
}

Semantic roles & 50–950 ramp

primary
#071042
secondary
#817324
accent
#D931F7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #071042

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

Preview Lab → · Contrast checker → · Palette generator →

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