#071542#071542

#071542 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.087 H 265.8°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#071542
RGBrgb(7, 21, 66)
HSLhsl(226, 81%, 14%)
HSVhsv(226, 89%, 26%)
CMYKcmyk(89.4%, 68.2%, 0%, 74.1%)
CIE-LABlab(8.78, 13.95, -30.17)
CIE-LCHlch(8.78, 33.24, 294.81°)
OKLaboklab(21.89% -0.0064 -0.0872)
OKLCHoklch(21.89% 0.087 265.8)
XYZxyz(1.3388, 0.9747, 5.2708)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071542 #423407
analogous
#073342 #071542 #170742
triadic
#071542 #420715 #154207
tetradic
#071542 #420733 #423407 #074217
square
#071542 #420733 #423407 #074217
split-complementary
#071542 #421707 #334207
monochromatic
#03091C #03091C #071542 #0D2779 #1338B1

Accessibility & contrast

On white

17.57
#071542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#071542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071542
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071542#FFFFFF#000000##FFFFFF
##0715421.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#002129
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #071542;
/* rgb */ color: rgb(7, 21, 66);
/* oklch */ color: oklch(21.9% 0.087 265.8);
Tailwind
colors: {
  custom: {
    50: '#525177',
    500: '#071542',
    950: '#000000',
  },
}
SCSS
$custom: #071542;
$custom-light: #525177;
$custom-dark: #000000;
JSON
{
  "hex": "#071542",
  "rgb": {
    "r": 7,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 225.763,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21885,
    "c": 0.08747,
    "h": 265.8
  },
  "luminance": 0.00975
}

Semantic roles & 50–950 ramp

primary
#071542
secondary
#816B24
accent
#C831F7
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #071542

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

Preview Lab → · Contrast checker → · Palette generator →

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